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

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