Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
intFromPtr_0_to_non_optional_pointer.zig
pretty
plain
permalink
blame
history
•
8 lines
•
152 B
1
export fn entry() void {
2
const b: *i32 = @ptrFromInt(0);
3
_ = b;
4
}
5
6
// error
7
//
8
// :2:33: error: pointer type '*i32' does not allow address zero