aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/shl_on_undefined_value.zig
blob: 30d9e806c581d10b88aceed8bc6633af23d64659 (plain)
1
2
3
4
5
6
7
8
9
10
11
comptime {
    var a: i64 = undefined;
    var b: u6 = undefined;
    _ = &a;
    _ = &b;
    _ = a << b;
}

// error
//
// :6:9: error: use of undefined value here causes illegal behavior