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