summaryrefslogtreecommitdiffstats
path: root/tests/ui/linkage-attr/link-attr-validation-early.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/linkage-attr/link-attr-validation-early.rs')
-rw-r--r--tests/ui/linkage-attr/link-attr-validation-early.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/linkage-attr/link-attr-validation-early.rs b/tests/ui/linkage-attr/link-attr-validation-early.rs
new file mode 100644
index 000000000..b9a835fb5
--- /dev/null
+++ b/tests/ui/linkage-attr/link-attr-validation-early.rs
@@ -0,0 +1,8 @@
+// Top-level ill-formed
+#[link] //~ ERROR attribute must be of the form
+ //~| WARN this was previously accepted
+#[link = "foo"] //~ ERROR attribute must be of the form
+ //~| WARN this was previously accepted
+extern "C" {}
+
+fn main() {}