Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Jul 26, 2023
1 parent 5acd4fb commit 85877c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bindgen/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ mod test {
!f_1_21.thiscall_abi &&
!f_1_21.vectorcall_abi
);
let features = RustFeatures::from(RustTarget::Stable_1_71);
assert!(
features.c_unwind_abi &&
features.abi_efiapi &&
!features.thiscall_abi
);
let f_nightly = RustFeatures::from(RustTarget::Nightly);
assert!(
f_nightly.static_lifetime_elision &&
Expand Down

0 comments on commit 85877c8

Please sign in to comment.