4728433c9e
`DiagnosticInfoInlineAsm::getInstruction` may return a null pointer, so the instruction shouldn't be blindly unwrapped.
11 lines
199 B
Rust
11 lines
199 B
Rust
#![feature(asm)]
|
|
|
|
// only-x86_64
|
|
|
|
fn main() {
|
|
unsafe {
|
|
asm!("int $3"); //~ ERROR too few operands for instruction
|
|
//~| ERROR invalid operand in inline asm
|
|
}
|
|
}
|