mirror of
https://github.com/ziglang/zig.git
synced 2026-12-05 19:08:46 -05:00
12 lines
222 B
Zig
12 lines
222 B
Zig
const x = if (undefined) true else false;
|
|
|
|
export fn entry() usize {
|
|
return @sizeOf(@TypeOf(x));
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :1:15: error: use of undefined value here causes undefined behavior
|