zig/test/cases/bugs
Andrew Kelley dd1338b0e6
fix incorrect union const value generation
closes #1381

The union was generated as a 3 byte struct when it needed to be
4 bytes so that the packed struct bitcast could work correctly.

Now it recognizes this situation and adds padding bytes to become
the correct size so that it can fit into an array.
2018-09-11 12:59:39 -04:00
..
394.zig run zig fmt on the codebase 2018-05-29 04:23:38 -04:00
655_other_file.zig fix const and volatile qualifiers being dropped sometimes 2017-12-13 21:53:52 -05:00
655.zig use * for pointer type instead of & 2018-05-31 17:28:07 -04:00
656.zig breaking syntax change: ??x to x.? (#1095) 2018-06-09 23:42:14 -04:00
726.zig add test case for #726 2018-09-05 18:20:04 -04:00
828.zig use * for pointer type instead of & 2018-05-31 17:28:07 -04:00
920.zig use * for pointer type instead of & 2018-05-31 17:28:07 -04:00
1111.zig clean up self hosted main. delete unsupported commands 2018-06-22 01:54:38 -04:00
1277.zig fix incorrectly generating an unused const fn global 2018-08-22 14:31:30 -04:00
1381.zig fix incorrect union const value generation 2018-09-11 12:59:39 -04:00
1421.zig fix false negative determining if function is generic 2018-08-27 16:14:48 -04:00