blob: 8f361018f5dc0e0c928b388dd048b0f435a3b304 [file] [log] [blame]
// PR c++/64235
// { dg-do compile { target c++11 } }
struct S {
double d;
};
struct alignas(sizeof(S) S1 { }; // { dg-error "expected '\\)' before 'S1'" }
struct alignas(16 S2 { }; // { dg-error "expected '\\)' before 'S2'" }
struct alignas(int S3 { }; // { dg-error "expected '\\)' before 'S3'" }