blob: 3daea89d78d7915e24a5b1d85bf4ea56f92563fd [file] [log] [blame]
struct S;
struct T { S t; }; // { dg-error "14:field .t. has incomplete type" }
struct U { int u[sizeof (S)]; }; // { dg-error "18:invalid application of .sizeof. to incomplete type" }
union V { char c; char d[]; }; // { dg-error "24:flexible array member in union" }
bool a = __has_unique_object_representations (S); // { dg-error "incomplete type" }
bool b = __has_unique_object_representations (T);
bool c = __has_unique_object_representations (U);
bool d = __has_unique_object_representations (V);