From: Pierre-Emmanuel Patry Date: Mon, 16 Oct 2023 08:41:06 +0000 (+0200) Subject: gccrs: Add new regression test for macro matcher behavior X-Git-Tag: basepoints/gcc-15~2084 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2dfff621d9f5e2f7635a505d3d8c89ce1181f90e;p=thirdparty%2Fgcc.git gccrs: 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 --- diff --git a/gcc/testsuite/rust/compile/macro-issue2653.rs b/gcc/testsuite/rust/compile/macro-issue2653.rs new file mode 100644 index 000000000000..dc2972f4e0d4 --- /dev/null +++ b/gcc/testsuite/rust/compile/macro-issue2653.rs @@ -0,0 +1,5 @@ +macro_rules! foo { + ($p:path $b:block) => {}; +} + +fn main() {}