Changeset 1f370451 for src/tests


Ignore:
Timestamp:
Nov 27, 2017, 2:38:37 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
c029f4d
Parents:
a7caf3d
Message:

Carry attributes through typedefs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/polymorphism.c

    ra7caf3d r1f370451  
    8989                // ensure that the size of aggregates with polymorphic members
    9090                // matches the size of the aggregates in a monomorphic context
    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." );
     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));
    9395
    9496                y_type ?=?(y_type & this, zero_t) {
Note: See TracChangeset for help on using the changeset viewer.