summaryrefslogtreecommitdiffstats
path: root/tests/run-make/issue-38237/foo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/issue-38237/foo.rs')
-rw-r--r--tests/run-make/issue-38237/foo.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run-make/issue-38237/foo.rs b/tests/run-make/issue-38237/foo.rs
new file mode 100644
index 000000000..a106e4fde
--- /dev/null
+++ b/tests/run-make/issue-38237/foo.rs
@@ -0,0 +1,9 @@
+#![crate_type = "proc-macro"]
+
+extern crate proc_macro;
+
+#[proc_macro_derive(A)]
+pub fn derive(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { ts }
+
+#[derive(Debug)]
+struct S;