]>
Commit | Line | Data |
---|---|---|
17df50a5 XL |
1 | // revisions: mir thir |
2 | // [thir]compile-flags: -Z thir-unsafeck | |
94222f64 | 3 | // needs-asm-support |
17df50a5 XL |
4 | |
5 | #![feature(llvm_asm)] | |
6 | #![feature(asm)] | |
94222f64 | 7 | #![allow(deprecated)] // llvm_asm! |
17df50a5 XL |
8 | |
9 | fn main() { | |
10 | asm!("nop"); //~ ERROR use of inline assembly is unsafe and requires unsafe function or block | |
11 | llvm_asm!("nop"); //~ ERROR use of inline assembly is unsafe and requires unsafe function or block | |
12 | } |