about summary refs log tree commit diff
path: root/tests/ui/consts/miri_unleashed/inline_asm.rs
blob: 51297aa636120341e5949fecfbafe075fd32e05c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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