zig/test/cases/int_to_ptr.0.zig
Eric Joldasov 50339f595a all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-19 12:34:42 -07:00

9 lines
148 B
Zig

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