Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
as_many_ptr_undefined.zig
pretty
plain
permalink
blame
history
•
8 lines
•
170 B
1
export fn entry1() void {
2
const slice = @as([*]i32, undefined)[0];
3
_ = slice;
4
}
5
6
// error
7
//
8
// :2:41: error: use of undefined value here causes illegal behavior