zig/test/cases/int_to_ptr.0.zig

9 lines
146 B
Zig

pub fn main() void {
_ = @intToPtr(*u8, 0);
}
// error
// output_mode=Exe
//
// :2:24: error: pointer type '*u8' does not allow address zero