about summary refs log tree commit diff
path: root/src/test/ui/unsafe/inline_asm.rs
blob: d002d0e701a6f1d75b88702458f192dbdb629b14 (plain)
1
2
3
4
5
6
7
8
9
10
// 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
}