From 813d0b956fd465bc083787974f78cae038c3259b Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Mon, 16 Oct 2023 10:41:06 +0200 Subject: [PATCH] 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 --- gcc/testsuite/rust/compile/macro-issue2653.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gcc/testsuite/rust/compile/macro-issue2653.rs 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() {}