zig/test/behavior
kcbanner e7bf143b36 type: handle the 0-length array case in abiSizeAdvanced
This fixes a panic in `unionAbiSize` when a 0-length array of a union is used as a struct field.

Because `resolveTypeLayout` does not resolve the `elem_ty` if `arrayLenIncludingSentinel` returns
0 for the array, the child union type is not guaranteed to have a resolved layout at this point.

Fixed this case by just returning 0 here.
2023-09-25 05:24:55 -07:00
..
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:44 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:44 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-05-20 17:30:22 +02:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-05-20 17:30:22 +02:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-06-27 19:57:23 -04:00
2022-01-07 00:06:06 -05:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:44 -07:00
2023-05-20 18:43:26 +03:30
2023-05-20 17:30:22 +02:00
2023-09-23 12:36:56 -07:00
2023-05-11 20:31:52 +02:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:56 -07:00
2023-09-23 12:36:44 -07:00
2023-09-23 12:36:56 -07:00
2023-05-11 20:31:52 +02:00
2023-09-23 12:36:56 -07:00