2021-05-13 10:20:51 -04:00
|
|
|
// revisions: mir thir
|
|
|
|
// [thir]compile-flags: -Z thir-unsafeck
|
|
|
|
|
|
|
|
#![feature(llvm_asm)]
|
|
|
|
#![feature(asm)]
|
2021-07-29 19:45:13 +02:00
|
|
|
#![allow(deprecated)] // llvm_asm!
|
2021-05-13 10:20:51 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|