Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
bitcast_undef.zig
pretty
plain
permalink
blame
history
•
12 lines
•
216 B
1
export fn entry1() void {
2
const x: i32 = undefined;
3
const y: u32 = @bitCast(x);
4
@compileLog(y);
5
}
6
7
// error
8
//
9
// :4:5: error: found compile log statement
10
//
11
// Compile Log Output:
12
// @as(u32, undefined)