about summary refs log tree commit diff
path: root/tests/ui/lint/linker-warning.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lint/linker-warning.rs')
-rw-r--r--tests/ui/lint/linker-warning.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/lint/linker-warning.rs b/tests/ui/lint/linker-warning.rs
new file mode 100644
index 00000000000..10e3f56ab95
--- /dev/null
+++ b/tests/ui/lint/linker-warning.rs
@@ -0,0 +1,9 @@
+//@ check-pass
+#![crate_type = "lib"]
+#![warn(unused_attributes)]
+#![allow(linker_messages)]
+//~^ WARNING unused attribute
+
+#[allow(linker_messages)]
+//~^ WARNING should be an inner attribute
+fn foo() {}