Changes in src/tests/polymorphism.c [1f370451:a7caf3d]
- File:
-
- 1 edited
-
src/tests/polymorphism.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/polymorphism.c
r1f370451 ra7caf3d 89 89 // ensure that the size of aggregates with polymorphic members 90 90 // matches the size of the aggregates in a monomorphic context 91 size_t ssz = struct_size(x, y); 92 size_t usz = union_size(x, y); 93 assertf( ssz == sizeof(S), "struct size differs in polymorphic context: %zd / %zd", ssz, sizeof(S)); 94 assertf( usz == sizeof(U), "union size differs in polymorphic context: %zd / %zd", usz, sizeof(U)); 91 assertf( struct_size(x, y) == sizeof(S), "struct size differs in polymorphic context." ); 92 assertf( union_size(x, y) == sizeof(U), "union size differs in polymorphic context." ); 95 93 96 94 y_type ?=?(y_type & this, zero_t) {
Note:
See TracChangeset
for help on using the changeset viewer.