aboutsummaryrefslogtreecommitdiff
path: root/test/cases/union.zig
AgeCommit message (Expand)Author
2019-01-29backport copy elision changesAndrew Kelley
2018-11-13New Zig formal grammar (#1685)Jimmi Holst Christensen
2018-10-15remove implicit cast from T to *const TAndrew Kelley
2018-10-15Solve the return type ambiguity (#1628)Jimmi Holst Christensen
2018-09-13fix tagged union with only 1 field tripping assertionAndrew Kelley
2018-09-05stage1: fix tagged union with no payloadsAndrew Kelley
2018-08-03fix tagged union initialization with a runtime voidAndrew Kelley
2018-06-19remove enum to/from int casting syntax; add `@enumToInt`/`@intToEnum`Andrew Kelley
2018-05-31use * for pointer type instead of &Andrew Kelley
2018-05-29run zig fmt on the codebaseAndrew Kelley
2018-05-09Merge branch 'master' into pointer-reformAndrew Kelley
2018-05-07tagged union field access prioritizes members over enum tagsAndrew Kelley
2018-05-01Added tests.Alexandros Naskos
2018-04-30[breaking] delete ptr deref prefix opAndrew Kelley
2018-02-02*WI* error sets - basic support workingAndrew Kelley
2018-01-25syntax: functions require return type. remove `->`Andrew Kelley
2018-01-22fix crash on union-enums with only 1 fieldAndrew Kelley
2018-01-09remove %% prefix operatorAndrew Kelley
2017-12-24fix segfault when passing union enum with sub byte...Andrew Kelley
2017-12-08add implicit cast from enum tag type of union to const ptr to the unionAndrew Kelley
2017-12-05allow union and its tag type to peer resolve to the tag typeAndrew Kelley
2017-12-05allow implicit cast from union to its enum tag typeAndrew Kelley
2017-12-05add implicit cast from enum to unionAndrew Kelley
2017-12-04add test for casting union to tag type of unionAndrew Kelley
2017-12-04add test for union with 1 void field being 0 bitsAndrew Kelley
2017-12-04add test for @sizeOf on extern and packed unionsAndrew Kelley
2017-12-04fix abi alignment of union-enums not counting tag typeAndrew Kelley
2017-12-03rename @EnumTagType to @TagType. add tests for union-enumsAndrew Kelley
2017-12-03rework enums and unions and their relationship to each otherAndrew Kelley
2017-11-16fix codegen for union init with runtime valueAndrew Kelley
2017-11-16debug safety for unionsAndrew Kelley
2017-11-15unions have a secret field for the typeAndrew Kelley
2017-11-15basic union supportAndrew Kelley
2017-10-27add test case for previous commitAndrew Kelley