Files
zig/test/cases/compile_errors/asm_at_compile_time.zig
Jacob Young 8159ff8b81 x86_64: implement error set and enum safety
This is all of the expected 0.14.0 progress on #21530, which can now be
postponed once this commit is merged.

This required rewriting the (un)wrap operations since the original
implementations were extremely buggy.

Also adds an easy way to retrigger Sema OPV bugs so that I don't have to
keep updating #22419 all the time.
2025-02-15 03:45:21 -05:00

20 lines
373 B
Zig

comptime {
doSomeAsm();
}
fn doSomeAsm() void {
asm volatile (
\\.globl aoeu;
\\.type aoeu, @function;
\\.set aoeu, derp;
);
}
// error
// backend=stage2
// target=native
//
// :6:5: error: unable to evaluate comptime expression
// :2:14: note: called at comptime from here
// :1:1: note: 'comptime' keyword forces comptime evaluation