| 1 |
// PR c++/84609 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 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 |
}; |