blob: 4a4ebf23c1fb5eca37c3b8a5370577f7028356ae [file] [log] [blame]
// { dg-do compile { target c++11 } }
// { dg-options "-pedantic" }
struct S
{
char a:4;
char b:8 alignas(int); // { dg-warning "ISO C\\+\\+ allows bit-field attributes only before the ':' token" }
char c:8 [[gnu::aligned(8)]]; // { dg-warning "ISO C\\+\\+ allows bit-field attributes only before the ':' token" }
// { dg-error "two consecutive '\\\[' shall only introduce an attribute before '\\\[' token" "" { target *-*-* } .-1 }
};