testsuite/rust: add a xfail test case ...

... to show case the timeout system is working
This commit is contained in:
liushuyu 2022-04-11 17:11:50 -06:00
parent 997894f637
commit e909e4fc7b
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437
1 changed files with 10 additions and 0 deletions

View File

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