gcc/testsuite/rust/compile/inline_asm_faulty_clobber.rs
raw| 1 | #![feature(rustc_attrs)] |
| 2 | |
| 3 | #[rustc_builtin_macro] |
| 4 | macro_rules! asm { |
| 5 | () => {} |
| 6 | } |
| 7 | |
| 8 | fn main() { |
| 9 | unsafe { |
| 10 | asm!("nop", clobber_abi()); // { dg-error "at least one abi must be provided as an argument to 'clobber_abi'" } |
| 11 | asm!("nop", clobber_abi+); // { dg-error "expected '\\(', found '\\+'" } |
| 12 | asm!("nop", clobber_abi); // { dg-error "expected '\\(', found end of macro arguments" } |
| 13 | } |
| 14 | } |