blob: 8e1325bc0a8f5f9250685b01b5a8b4374e804362 [file] [log] [blame]
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
// needs-asm-support
#![feature(llvm_asm)]
#![feature(asm)]
#![allow(deprecated)] // llvm_asm!
fn main() {
asm!("nop"); //~ ERROR use of inline assembly is unsafe and requires unsafe function or block
llvm_asm!("nop"); //~ ERROR use of inline assembly is unsafe and requires unsafe function or block
}