zig/test/behavior
mlugg 4ec299007a Sema: allow dereferencing ill-defined pointers to zero-bit types at comptime
It doesn't matter if a pointer to a zero-bit (i.e. OPV) type is
undefined or runtime-known; we still know the result of the dereference
at comptime. Code may use this, for instance, when allocating zero-bit
types: `@as(*void, undefined)` is entirely reasonable to use at runtime,
since we know the pointer will never be accessed, thus it should be
valid at comptime too.
2023-03-17 01:56:36 -04:00
..
2023-02-21 15:46:34 -05:00
2023-01-02 15:02:33 -07:00
2021-10-28 17:33:05 -07:00
2022-02-13 14:42:20 +02:00
2022-01-07 00:06:06 -05:00
2023-01-23 13:48:36 -05:00
2023-02-23 00:29:23 -05:00
2023-03-05 02:59:02 -05:00
2023-03-05 02:59:02 -05:00
2023-02-23 21:25:29 -05:00