rust/src/test/ui/unsafe/inline_asm.rs
Josh Stone 35fd99c779 Add needs-asm-support to more tests
These were found as test failures on s390x for RHEL and Fedora.
2021-08-17 18:43:09 -07:00

12 lines
376 B
Rust

// 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
}