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