We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956a6c0 commit bfa2bfaCopy full SHA for bfa2bfa
src/tools/miri/tests/pass/target-spec-implies-target-feature.rs
@@ -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