summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/macro-crate-def-only.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/macros/macro-crate-def-only.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/macros/macro-crate-def-only.rs b/src/test/ui/macros/macro-crate-def-only.rs
new file mode 100644
index 000000000..514b33e38
--- /dev/null
+++ b/src/test/ui/macros/macro-crate-def-only.rs
@@ -0,0 +1,10 @@
+// run-pass
+// aux-build:macro_crate_def_only.rs
+
+
+#[macro_use] #[no_link]
+extern crate macro_crate_def_only;
+
+pub fn main() {
+ assert_eq!(5, make_a_5!());
+}