mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
13 lines
202 B
Zig
13 lines
202 B
Zig
comptime {
|
|
const a: i32 = 1;
|
|
const b: i32 = 0;
|
|
const c = a / b;
|
|
_ = c;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :4:19: error: division by zero here causes undefined behavior
|