summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-link_cfg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-link_cfg.rs')
-rw-r--r--tests/ui/feature-gates/feature-gate-link_cfg.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-link_cfg.rs b/tests/ui/feature-gates/feature-gate-link_cfg.rs
new file mode 100644
index 000000000..d30ee3bcf
--- /dev/null
+++ b/tests/ui/feature-gates/feature-gate-link_cfg.rs
@@ -0,0 +1,5 @@
+#[link(name = "foo", cfg(foo))]
+//~^ ERROR: is unstable
+extern "C" {}
+
+fn main() {}