2020-04-19 05:05:28 -05:00
|
|
|
// compile-flags: -Zunleash-the-miri-inside-of-you
|
|
|
|
// only-x86_64
|
|
|
|
|
2021-12-09 18:15:33 -06:00
|
|
|
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.
|
2022-01-11 18:00:00 -06:00
|
|
|
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
|
|
|
|
};
|