mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
8 lines
143 B
Zig
8 lines
143 B
Zig
|
comptime {
|
||
|
const opt_ptr: ?*i32 = null;
|
||
|
const ptr: *i32 = @ptrCast(opt_ptr);
|
||
|
_ = ptr;
|
||
|
}
|
||
|
|
||
|
// test_error=null pointer casted to type
|