PR c++/84609
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr84609.C
blob057219280a8450ff474f3aed542985994cbe2cb7
1 // PR c++/84609
2 // { dg-do compile { target c++11 } }
4 struct S {
5   int s __attribute__((aligned([](char *) {})));        // { dg-error "requested alignment is not an integer constant" }
6   int t [[gnu::aligned([](char *) {})]];                // { dg-error "requested alignment is not an integer constant" }
7   int u __attribute__((aligned([](char *) {}))) : 2;    // { dg-error "requested alignment is not an integer constant" }
8   int v [[gnu::aligned([](char *) {})]] : 4;            // { dg-error "requested alignment is not an integer constant" }
9 };