Skip to content

Commit

Permalink
Add new regression test for macro matcher behavior
Browse files Browse the repository at this point in the history
Add a new test to highlight the fix introduced for #2653.

gcc/testsuite/ChangeLog:

	* rust/compile/macro-issue2653.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P committed Oct 17, 2023
1 parent 94b1ff7 commit 813d0b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcc/testsuite/rust/compile/macro-issue2653.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
macro_rules! foo {
($p:path $b:block) => {};
}

fn main() {}

0 comments on commit 813d0b9

Please sign in to comment.