The test case fails with either one error or two errors. Use a single code generation unit to avoid nondeterminism.
11 lines
263 B
Rust
11 lines
263 B
Rust
#![feature(llvm_asm)]
|
|
// compile-flags: -Ccodegen-units=1
|
|
// build-fail
|
|
// only-x86_64
|
|
|
|
fn main() {
|
|
unsafe {
|
|
llvm_asm!("int $3"); //~ ERROR too few operands for instruction
|
|
//~| ERROR invalid operand in inline asm
|
|
}
|
|
}
|