rust/tests/ui/consts/miri_unleashed/inline_asm.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
306 B
Rust
Raw Normal View History

2020-04-19 05:05:28 -05:00
// compile-flags: -Zunleash-the-miri-inside-of-you
// only-x86_64
use std::arch::asm;
2020-04-19 05:05:28 -05:00
fn main() {}
2020-04-19 13:21:26 -05:00
// Make sure we catch executing inline assembly.
static TEST_BAD: () = {
2020-06-01 13:53:45 -05:00
unsafe { asm!("nop"); }
//~^ ERROR could not evaluate static initializer
//~| NOTE inline assembly is not supported
};