blob: 4e14becf74bef1c2c7e5fe1bb3e197b52f5321f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// only-x86_64
// needs-asm-support
#![feature(asm_const)]
// Test to make sure that we emit const errors eagerly for inline asm
use std::arch::asm;
fn test<T>() {
unsafe { asm!("/* {} */", const 1 / 0); }
//~^ ERROR evaluation of
}
fn main() {}
|