]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add new regression test for macro matcher behavior
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 16 Oct 2023 08:41:06 +0000 (10:41 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Tue, 17 Oct 2023 22:18:41 +0000 (22:18 +0000)
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>
gcc/testsuite/rust/compile/macro-issue2653.rs [new file with mode: 0644]

diff --git a/gcc/testsuite/rust/compile/macro-issue2653.rs b/gcc/testsuite/rust/compile/macro-issue2653.rs
new file mode 100644 (file)
index 0000000..dc2972f
--- /dev/null
@@ -0,0 +1,5 @@
+macro_rules! foo {
+    ($p:path $b:block) => {};
+}
+
+fn main() {}