summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/macro-stability-rpass.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/macros/macro-stability-rpass.rs')
-rw-r--r--src/test/ui/macros/macro-stability-rpass.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/macros/macro-stability-rpass.rs b/src/test/ui/macros/macro-stability-rpass.rs
new file mode 100644
index 000000000..2d02b9528
--- /dev/null
+++ b/src/test/ui/macros/macro-stability-rpass.rs
@@ -0,0 +1,15 @@
+// run-pass
+// aux-build:unstable-macros.rs
+
+#![unstable(feature = "one_two_three_testing", issue = "none")]
+#![feature(staged_api, unstable_macros, local_unstable)]
+
+#[macro_use] extern crate unstable_macros;
+
+#[unstable(feature = "local_unstable", issue = "none")]
+macro_rules! local_unstable { () => () }
+
+fn main() {
+ unstable_macro!();
+ local_unstable!();
+}