diff options
Diffstat (limited to 'tests/ui/attributes/z-crate-attr/basic.rs')
| -rw-r--r-- | tests/ui/attributes/z-crate-attr/basic.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/attributes/z-crate-attr/basic.rs b/tests/ui/attributes/z-crate-attr/basic.rs new file mode 100644 index 00000000000..119a48d5d65 --- /dev/null +++ b/tests/ui/attributes/z-crate-attr/basic.rs @@ -0,0 +1,12 @@ +//@ run-pass +// This test checks if an unstable feature is enabled with the -Zcrate-attr=feature(foo) flag. If +// the exact feature used here is causing problems feel free to replace it with another +// perma-unstable feature. + +//@ compile-flags: -Zcrate-attr=feature(abi_unadjusted) + +#![allow(dead_code)] + +extern "unadjusted" fn foo() {} + +fn main() {} |
