Skip to content

Commit bfa2bfa

Browse files
committed
test that target features given in the target spec are enabled
1 parent 956a6c0 commit bfa2bfa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//! Ensure that the target features given in the target spec are actually enabled.
2+
//@only-target: armv7
3+
4+
fn main() {
5+
assert!(cfg!(target_feature = "v7"));
6+
assert!(cfg!(target_feature = "vfp2"));
7+
assert!(cfg!(target_feature = "thumb2"));
8+
}

0 commit comments

Comments
 (0)