Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
slice_end_index_undefined.zig
pretty
plain
permalink
blame
history
•
8 lines
•
170 B
1
export fn a() void {
2
var array: [0]void = undefined;
3
_ = array[0..undefined];
4
}
5
6
// error
7
//
8
// :3:18: error: use of undefined value here causes illegal behavior