diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-04-11 11:27:25 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-04-11 11:31:14 +0100 |
commit | 68458036c81d141a3899ac4e6ec6ddf0fdfde174 (patch) | |
tree | 7c03c12c78c95d67fcb258e1f0a02f9d3ddf1521 /gcc | |
parent | 1b8d4521db39ca1c1610eb43ba9f7f9000054b5c (diff) | |
download | gcc-68458036c81d141a3899ac4e6ec6ddf0fdfde174.zip gcc-68458036c81d141a3899ac4e6ec6ddf0fdfde174.tar.gz gcc-68458036c81d141a3899ac4e6ec6ddf0fdfde174.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/rust/compile/builtin_macro_concat.rs | 22 |
1 files 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 1fcd65f..17c42e3 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" } } |