zig/test/cases/int_to_ptr.1.zig

8 lines
126 B
Zig

pub fn main() void {
_ = @intToPtr(*u32, 2);
}
// error
//
// :2:25: error: pointer type '*u32' requires aligned address