zig/test/standalone/empty_global_error_set/main.zig
Jacob Young 0bf44c3093 x86_64: fix @errorName data
The final offset was clobbering the first error name, which is revealed
by an out of bounds when the global error set is empty.

Closes #22362
2025-01-05 17:15:56 -05:00

4 lines
129 B
Zig

fn errorName(err: anyerror) [:0]const u8 {
return @errorName(err);
}
export const error_name: *const anyopaque = &errorName;