]> git.proxmox.com Git - rustc.git/blame - src/test/ui/unsafe/inline_asm.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / unsafe / inline_asm.rs
CommitLineData
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
9fn 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}