gcc/testsuite/g++.dg/cpp0x/typedef-redecl.C
raw| 1 | // PR c/70297 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | #define N 64 |
| 5 | |
| 6 | typedef int T; |
| 7 | typedef int T __attribute__((aligned (N))); |
| 8 | typedef int T __attribute__((aligned (N * 2))); |
| 9 | typedef int T __attribute__((aligned (N))); |
| 10 | typedef int T; |
| 11 | |
| 12 | static_assert (alignof (T) == N * 2, "N * 2"); |