summaryrefslogtreecommitdiffstats
path: root/tests/ui/unsafe/inline_asm.rs
blob: 12c7efe4f50b6f802d015d6376d0339d311f4938 (plain)
1
2
3
4
5
6
7
8
9
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
// needs-asm-support

use std::arch::asm;

fn main() {
    asm!("nop"); //~ ERROR use of inline assembly is unsafe and requires unsafe function or block
}