rust/tests/ui/asm/fail-const-eval-issue-121099.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
268 B
Rust
Raw Normal View History

//@ build-fail
//@ needs-asm-support
2024-03-18 15:17:27 +00:00
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]