[gcc r14-8055] gccrs: Add new regression test for macro matcher behavior

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 18:14:42 GMT 2024


https://gcc.gnu.org/g:2dfff621d9f5e2f7635a505d3d8c89ce1181f90e

commit r14-8055-g2dfff621d9f5e2f7635a505d3d8c89ce1181f90e
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Mon Oct 16 10:41:06 2023 +0200

    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 <pierre-emmanuel.patry@embecosm.com>

Diff:
---
 gcc/testsuite/rust/compile/macro-issue2653.rs | 5 +++++
 1 file changed, 5 insertions(+)

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


More information about the Gcc-cvs mailing list