aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/bitcast_undef.zig
blob: fe9b40e463dc9e38489af412588e26c88ad0c44f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
export fn entry1() void {
    const x: i32 = undefined;
    const y: u32 = @bitCast(x);
    @compileLog(y);
}

// error
//
// :4:5: error: found compile log statement
//
// Compile Log Output:
// @as(u32, undefined)