zig/test/behavior
Jacob Young 0e3feebb04 codegen: fix taking the address of a zero-bit field in a zero-bit struct
Normally when we want a pointer to the end of a struct we just add 1 to
the struct pointer.  However, when it is a zero-bit struct, the pointer
type being used during lowering is often a dummy pointer type that
actually points to a non-zero-bit type, so we actually want to add 0
instead, since a zero-bit struct begins and ends at the same address.
2022-12-18 22:11:26 -05:00
..
2022-12-13 13:14:20 +02:00
2021-10-28 17:33:05 -07:00
2022-12-13 13:14:20 +02:00
2022-02-13 14:42:20 +02:00
2022-01-07 00:06:06 -05:00