public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] testsuite/rust: add a xfail test case ...
@ 2022-06-08 12:28 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:28 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e909e4fc7b2c46cadf15ea114622241f39337673
commit e909e4fc7b2c46cadf15ea114622241f39337673
Author: liushuyu <liushuyu011@gmail.com>
Date: Mon Apr 11 17:11:50 2022 -0600
testsuite/rust: add a xfail test case ...
... to show case the timeout system is working
Diff:
---
gcc/testsuite/rust/compile/xfail/macro_return.rs | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gcc/testsuite/rust/compile/xfail/macro_return.rs b/gcc/testsuite/rust/compile/xfail/macro_return.rs
new file mode 100644
index 00000000000..0eb69fabb24
--- /dev/null
+++ b/gcc/testsuite/rust/compile/xfail/macro_return.rs
@@ -0,0 +1,10 @@
+// { dg-excess-errors "...." { xfail *-*-*-* } }
+
+macro_rules! add {
+ ($a:expr) => { $a };
+ ($a:expr, $($b:expr),+) => { $a + add!($($b),*) }
+}
+
+fn main() -> i32 {
+ add!(add!(1, 2))
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:28 [gcc/devel/rust/master] testsuite/rust: add a xfail test case Thomas Schwinge
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).