Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
doc
langref
test_comptime_invalid_null_pointer_cast.zig
pretty
plain
permalink
blame
history
•
7 lines
•
143 B
1
comptime {
2
const opt_ptr: ?*i32 = null;
3
const ptr: *i32 = @ptrCast(opt_ptr);
4
_ = ptr;
5
}
6
7
// test_error=null pointer casted to type