diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-10-16 10:41:06 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2023-10-17 22:18:41 +0000 |
commit | 813d0b956fd465bc083787974f78cae038c3259b (patch) | |
tree | c1fffb9f769db4d5085894a0bbcb933ce0d7cdc8 | |
parent | 94b1ff75bb7d45804034fcd08e634d36727ffcc2 (diff) | |
download | gcc-813d0b956fd465bc083787974f78cae038c3259b.zip gcc-813d0b956fd465bc083787974f78cae038c3259b.tar.gz gcc-813d0b956fd465bc083787974f78cae038c3259b.tar.bz2 |
Add new regression test for macro matcher behavior
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 <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | gcc/testsuite/rust/compile/macro-issue2653.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/macro-issue2653.rs b/gcc/testsuite/rust/compile/macro-issue2653.rs new file mode 100644 index 0000000..dc2972f --- /dev/null +++ b/gcc/testsuite/rust/compile/macro-issue2653.rs @@ -0,0 +1,5 @@ +macro_rules! foo { + ($p:path $b:block) => {}; +} + +fn main() {} |