summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-linkage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-linkage.rs')
-rw-r--r--tests/ui/feature-gates/feature-gate-linkage.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-linkage.rs b/tests/ui/feature-gates/feature-gate-linkage.rs
new file mode 100644
index 000000000..505f31ec6
--- /dev/null
+++ b/tests/ui/feature-gates/feature-gate-linkage.rs
@@ -0,0 +1,6 @@
+extern "C" {
+ #[linkage = "extern_weak"] static foo: *mut isize;
+ //~^ ERROR: the `linkage` attribute is experimental and not portable
+}
+
+fn main() {}