public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8052] gccrs: Add new regression test
@ 2024-01-16 18:14 Arthur Cohen
0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2024-01-16 18:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:46c84b78055325e2001ac6336f34e8ef5393db05
commit r14-8052-g46c84b78055325e2001ac6336f34e8ef5393db05
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date: Tue Oct 10 16:03:45 2023 +0200
gccrs: Add new regression test
This new test highlight the fix for #2651.
gcc/testsuite/ChangeLog:
* rust/compile/macro_rules_macro_rules.rs: New test.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diff:
---
gcc/testsuite/rust/compile/macro_rules_macro_rules.rs | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gcc/testsuite/rust/compile/macro_rules_macro_rules.rs b/gcc/testsuite/rust/compile/macro_rules_macro_rules.rs
new file mode 100644
index 00000000000..ecd1712c94a
--- /dev/null
+++ b/gcc/testsuite/rust/compile/macro_rules_macro_rules.rs
@@ -0,0 +1,10 @@
+macro_rules! macro_rules {
+ () => {
+ struct S;
+ };
+}
+macro_rules! {} // calls the macro defined above
+
+fn main() {
+ let _s = S;
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-16 18:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16 18:14 [gcc r14-8052] gccrs: Add new regression test Arthur Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).