blob: f2cead399b6fbdaa9c65e10b0774378087a31b14 (
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() {}
|