mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00
15 lines
289 B
Rust
15 lines
289 B
Rust
//@ compile-flags: -Zunleash-the-miri-inside-of-you
|
|
//@ only-x86_64
|
|
|
|
use std::arch::asm;
|
|
|
|
fn main() {}
|
|
|
|
// Make sure we catch executing inline assembly.
|
|
static TEST_BAD: () = {
|
|
unsafe { asm!("nop"); }
|
|
//~^ ERROR inline assembly is not supported
|
|
};
|
|
|
|
//~? WARN skipping const checks
|