3 // { dg-options "-Winvalid-offsetof" }
6 struct B : virtual A { };
7 __SIZE_TYPE__ s = __builtin_offsetof (B, A::i); // { dg-warning "offsetof within non-standard-layout type" }
13 return __builtin_offsetof (T, A::i) // { dg-warning "offsetof within non-standard-layout type" }
14 + __builtin_offsetof (B, A::i); // { dg-warning "offsetof within non-standard-layout type" }
17 __SIZE_TYPE__ t = foo<B> ();