diff options
Diffstat (limited to 'tests/incremental/feature_gate.rs')
-rw-r--r-- | tests/incremental/feature_gate.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/incremental/feature_gate.rs b/tests/incremental/feature_gate.rs new file mode 100644 index 000000000..5317a9962 --- /dev/null +++ b/tests/incremental/feature_gate.rs @@ -0,0 +1,13 @@ +// This test makes sure that we detect changed feature gates. + +// revisions:rpass1 cfail2 +// compile-flags: -Z query-dep-graph + +#![feature(rustc_attrs)] +#![cfg_attr(rpass1, feature(abi_unadjusted))] + +fn main() { +} + +extern "unadjusted" fn foo() {} +//[cfail2]~^ ERROR: unadjusted ABI is an implementation detail and perma-unstable |