| 1 |
/* PR c/116357 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "" } */ |
| 4 |
|
| 5 |
typedef int A __attribute__((aligned (2 * alignof (int)))); |
| 6 |
A a[4]; /* { dg-error "alignment of array elements is greater than element size" } */ |
| 7 |
typedef volatile int B __attribute__((aligned (2 * alignof (int)))); |
| 8 |
B b[4]; /* { dg-error "alignment of array elements is greater than element size" } */ |
| 9 |
typedef const int C __attribute__((aligned (2 * alignof (int)))); |
| 10 |
C c[4]; /* { dg-error "alignment of array elements is greater than element size" } */ |