]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: 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)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:18 +0000 (19:09 +0100)
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() {}