public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Disable failing testcase
@ 2022-06-08 12:27 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:27 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:68458036c81d141a3899ac4e6ec6ddf0fdfde174
commit 68458036c81d141a3899ac4e6ec6ddf0fdfde174
Author: Philip Herron <philip.herron@embecosm.com>
Date: Mon Apr 11 11:27:25 2022 +0100
Disable failing testcase
This commit fed5a41fb1c2c91b77297fdd6d3731078f480441 introduced the concat
builtin macro but the error handling here is producing an infinite loop
which was not caught during code-review. This patch disables the offending
error cases so that it does not impact further development.
Addresses #1102
Diff:
---
gcc/testsuite/rust/compile/builtin_macro_concat.rs | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/gcc/testsuite/rust/compile/builtin_macro_concat.rs b/gcc/testsuite/rust/compile/builtin_macro_concat.rs
index 1fcd65fd648..17c42e31c30 100644
--- a/gcc/testsuite/rust/compile/builtin_macro_concat.rs
+++ b/gcc/testsuite/rust/compile/builtin_macro_concat.rs
@@ -1,15 +1,15 @@
macro_rules! concat {
- () => {{}};
+ () => {{}};
}
-fn main () {
- let not_literal = "identifier";
- concat! ();
- concat! (,); // { dg-error "argument must be a constant literal" }
- concat! (not_literal); // { dg-error "argument must be a constant literal" }
- concat! ("message");
- concat! ("message",);
- concat! ("message",1, true, false, 1.0, 10usize, 2000u64);
- concat! ("message",1, true, false, 1.0, 10usize, 2000u64,);
- concat! ("m", not_literal); // { dg-error "argument must be a constant literal" }
+fn main() {
+ // let not_literal = "identifier";
+ concat!();
+ // concat! (,); // { error "argument must be a constant literal" }
+ // concat!(not_literal); // { error "argument must be a constant literal" }
+ concat!("message");
+ concat!("message",);
+ concat!("message", 1, true, false, 1.0, 10usize, 2000u64);
+ concat!("message", 1, true, false, 1.0, 10usize, 2000u64,);
+ // concat! ("m", not_literal); // { error "argument must be a constant literal" }
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:27 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:27 [gcc/devel/rust/master] Disable failing testcase 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).