summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/load-two.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/proc-macro/load-two.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/load-two.rs b/src/test/ui/proc-macro/load-two.rs
new file mode 100644
index 000000000..5ce0e6545
--- /dev/null
+++ b/src/test/ui/proc-macro/load-two.rs
@@ -0,0 +1,23 @@
+// run-pass
+
+#![allow(path_statements)]
+#![allow(dead_code)]
+// aux-build:derive-atob.rs
+// aux-build:derive-ctod.rs
+
+#[macro_use]
+extern crate derive_atob;
+#[macro_use]
+extern crate derive_ctod;
+
+#[derive(Copy, Clone)]
+#[derive(AToB)]
+struct A;
+
+#[derive(CToD)]
+struct C;
+
+fn main() {
+ B;
+ D;
+}