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

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