summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/derive-expand-order.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/proc-macro/derive-expand-order.rs')
-rw-r--r--src/test/ui/proc-macro/derive-expand-order.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/derive-expand-order.rs b/src/test/ui/proc-macro/derive-expand-order.rs
new file mode 100644
index 000000000..0cf1ceb91
--- /dev/null
+++ b/src/test/ui/proc-macro/derive-expand-order.rs
@@ -0,0 +1,14 @@
+// run-pass
+// aux-build:multiple-derives.rs
+
+extern crate multiple_derives;
+
+use multiple_derives::*;
+
+#[derive(First)]
+#[derive(Second)]
+#[derive(Third, Fourth)]
+#[derive(Fifth)]
+pub struct Foo {}
+
+fn main() {}