Disable failing testcase

This commit fed5a41fb1 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
This commit is contained in:
Philip Herron 2022-04-11 11:27:25 +01:00
parent 1b8d4521db
commit 68458036c8
1 changed files with 11 additions and 11 deletions

View File

@ -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" }
}