12 lines
376 B
Rust
12 lines
376 B
Rust
// 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
|
|
}
|