rust/src/test/ui/issues/issue-23458.rs
Tomasz Miąsko 614b0cccfe Use -Ccodegen-units=1 to make issue-23458 test deterministic
The test case fails with either one error or two errors.
Use a single code generation unit to avoid nondeterminism.
2021-02-17 00:00:00 +00:00

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