about summary refs log tree commit diff
path: root/tests/ui/attributes/use-extern-crate-named-macro-use.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/attributes/use-extern-crate-named-macro-use.rs')
-rw-r--r--tests/ui/attributes/use-extern-crate-named-macro-use.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/attributes/use-extern-crate-named-macro-use.rs b/tests/ui/attributes/use-extern-crate-named-macro-use.rs
new file mode 100644
index 00000000000..5b322ccfaf7
--- /dev/null
+++ b/tests/ui/attributes/use-extern-crate-named-macro-use.rs
@@ -0,0 +1,11 @@
+//@ check-pass
+//@ proc-macro: external-macro-use.rs
+
+// issue#140255
+
+extern crate external_macro_use as macro_use;
+
+#[macro_use::a]
+fn f() {}
+
+fn main() {}