Skip to content

Commit

Permalink
test get_tail_call_kind
Browse files Browse the repository at this point in the history
Signed-off-by: xermicus <[email protected]>
  • Loading branch information
xermicus committed Mar 14, 2024
1 parent fb9b9c2 commit 4085eff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/all/test_values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ fn test_call_site_tail_call_attributes() {

assert!(!call_site.is_tail_call());
assert_eq!(call_site.get_tail_call_kind(), LLVMTailCallKindNone);
assert_eq!(
call_site.try_as_basic_value().right().unwrap().get_tail_call_kind(),
Some(LLVMTailCallKindNone)
);

call_site.set_tail_call_kind(LLVMTailCallKindTail);

Expand Down

0 comments on commit 4085eff

Please sign in to comment.