Skip to content

Commit

Permalink
Add a new regression test for macro call "default"
Browse files Browse the repository at this point in the history
This test highlight the fix required for #2655.

gcc/testsuite/ChangeLog:

	* rust/compile/parse_item_default_macro.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P authored and CohenArthur committed Oct 17, 2023
1 parent 948523a commit 6658219
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gcc/testsuite/rust/compile/parse_item_default_macro.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// { dg-additional-options "-frust-compile-until=ast" }
macro_rules! default {
($($x:tt)*) => { $($x)* }
}

default! {
struct A;
}

0 comments on commit 6658219

Please sign in to comment.