aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/macro16.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/rust/compile/macro16.rs')
-rw-r--r--gcc/testsuite/rust/compile/macro16.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/macro16.rs b/gcc/testsuite/rust/compile/macro16.rs
new file mode 100644
index 0000000..e5e56ed
--- /dev/null
+++ b/gcc/testsuite/rust/compile/macro16.rs
@@ -0,0 +1,11 @@
+fn main() {
+ macro_rules! create_type {
+ ($s:ident) => {
+ struct $s(i32);
+ };
+ }
+
+ create_type!(Wrapper);
+
+ let _ = Wrapper(15);
+}