diff --git a/gcc/testsuite/rust/compile/parse_item_default_macro.rs b/gcc/testsuite/rust/compile/parse_item_default_macro.rs new file mode 100644 index 000000000000..3e632695c12d --- /dev/null +++ b/gcc/testsuite/rust/compile/parse_item_default_macro.rs @@ -0,0 +1,8 @@ +// { dg-additional-options "-frust-compile-until=ast" } +macro_rules! default { + ($($x:tt)*) => { $($x)* } +} + +default! { + struct A; +}