2024-03-18 11:26:30 -04:00
|
|
|
//@ build-fail
|
2024-03-18 22:33:04 -04:00
|
|
|
//@ needs-asm-support
|
2024-03-18 11:17:27 -04:00
|
|
|
#![feature(asm_const)]
|
|
|
|
|
|
|
|
|
|
use std::arch::global_asm;
|
|
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
|
|
global_asm!("/* {} */", const 1 << 500); //~ ERROR evaluation of constant value failed [E0080]
|
|
|
|
|
|
|
|
|
|
global_asm!("/* {} */", const 1 / 0); //~ ERROR evaluation of constant value failed [E0080]
|