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