Skip to content

Commit

Permalink
Add new regression test
Browse files Browse the repository at this point in the history
This new test highlight the fix for #2651.

gcc/testsuite/ChangeLog:

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

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
  • Loading branch information
P-E-P committed Oct 17, 2023
1 parent 3e3180a commit 9762e09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gcc/testsuite/rust/compile/macro_rules_macro_rules.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
macro_rules! macro_rules {
() => {
struct S;
};
}
macro_rules! {} // calls the macro defined above

fn main() {
let _s = S;
}

0 comments on commit 9762e09

Please sign in to comment.