Changeset b8b64c34 for tests/raii/ctor-autogen.cfa
- Timestamp:
- Feb 27, 2025, 3:17:20 PM (13 months ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- 3483185
- Parents:
- 9506c70
- File:
-
- 1 edited
-
tests/raii/ctor-autogen.cfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/raii/ctor-autogen.cfa
r9506c70 rb8b64c34 1 1 // TODO: add error cases (e.g., use of field constructors for managed types, etc.) 2 2 3 enum Colo r { R, G, B };3 enum Colour { R, G, B }; 4 4 5 5 // empty struct/union should have generated ctor/dtors … … 21 21 // struct/union with members with generated ctor/dtors should themselves have generated ctor/dtors 22 22 union PopulatedUnion { 23 Colo r c;23 Colour c; 24 24 U u; 25 25 S s; … … 27 27 28 28 struct PopulatedStruct { 29 Colo r c;29 Colour c; 30 30 U u; 31 31 S s; … … 109 109 S s; 110 110 U u; 111 Colo r e;111 Colour e = R; 112 112 113 // identity(R); Colo r constant should be Color which is otype114 identity(e); // Colo r should be an otype113 // identity(R); Colour constant should be Colour which is otype 114 identity(e); // Colour should be an otype 115 115 identity(u); // U should be an otype 116 116 identity(s); // S should be an otype … … 139 139 identity(dsi); 140 140 identity(dsd); 141 // identity(dui); // xxx - codegen errors in generated thunk _temp3 (Box-pass-generated assignment return-temporary)142 //identity(dud);141 identity(dui); 142 identity(dud); 143 143 identity(dssi); 144 144 identity(dssf);
Note:
See TracChangeset
for help on using the changeset viewer.