summaryrefslogtreecommitdiffstats
path: root/src/test/ui/cfg/cfg-attr-cfg.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/cfg/cfg-attr-cfg.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/cfg/cfg-attr-cfg.rs b/src/test/ui/cfg/cfg-attr-cfg.rs
new file mode 100644
index 000000000..61794e0bf
--- /dev/null
+++ b/src/test/ui/cfg/cfg-attr-cfg.rs
@@ -0,0 +1,8 @@
+// run-pass
+// main is conditionally compiled, but the conditional compilation
+// is conditional too!
+
+// pretty-expanded FIXME #23616
+
+#[cfg_attr(foo, cfg(bar))]
+fn main() { }