]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/miri_unleashed/inline_asm.rs
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / consts / miri_unleashed / inline_asm.rs
1 // compile-flags: -Zunleash-the-miri-inside-of-you
2 // only-x86_64
3 #![allow(const_err)]
4
5 use std::arch::asm;
6
7 fn main() {}
8
9 // Make sure we catch executing inline assembly.
10 static TEST_BAD: () = {
11     unsafe { asm!("nop"); }
12     //~^ ERROR could not evaluate static initializer
13     //~| NOTE inline assembly is not supported
14 };