summaryrefslogtreecommitdiffstats
path: root/src/test/incremental/feature_gate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/incremental/feature_gate.rs')
-rw-r--r--src/test/incremental/feature_gate.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/incremental/feature_gate.rs b/src/test/incremental/feature_gate.rs
new file mode 100644
index 000000000..5317a9962
--- /dev/null
+++ b/src/test/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