2023-10-05 04:43:55 -05:00
|
|
|
//@ only-x86_64
|
|
|
|
//@ needs-asm-support
|
|
|
|
|
|
|
|
// Test to make sure that we emit const errors eagerly for inline asm
|
|
|
|
|
|
|
|
use std::arch::asm;
|
|
|
|
|
|
|
|
fn test<T>() {
|
2024-08-10 11:13:03 -05:00
|
|
|
unsafe {
|
|
|
|
asm!("/* {} */", const 1 / 0);
|
|
|
|
//~^ ERROR evaluation of
|
|
|
|
}
|
2023-10-05 04:43:55 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|