Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
shl_exact_on_undefined_value.zig
pretty
plain
permalink
blame
history
•
11 lines
•
199 B
1
comptime {
2
var a: i64 = undefined;
3
var b: u6 = undefined;
4
_ = &a;
5
_ = &b;
6
_ = @shlExact(a, b);
7
}
8
9
// error
10
//
11
// :6:19: error: use of undefined value here causes illegal behavior