1
Fork 0
rust/src/test/ui/unsafe/inline_asm.rs

11 lines
320 B
Rust
Raw Normal View History

// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
#![feature(llvm_asm)]
#![feature(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
}