summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-raw-dylib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-raw-dylib.rs')
-rw-r--r--tests/ui/feature-gates/feature-gate-raw-dylib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-raw-dylib.rs b/tests/ui/feature-gates/feature-gate-raw-dylib.rs
new file mode 100644
index 000000000..291cca8fd
--- /dev/null
+++ b/tests/ui/feature-gates/feature-gate-raw-dylib.rs
@@ -0,0 +1,7 @@
+// only-windows
+// only-x86
+#[link(name = "foo", kind = "raw-dylib")]
+//~^ ERROR: link kind `raw-dylib` is unstable on x86
+extern "C" {}
+
+fn main() {}