gcc/testsuite/gcc.dg/typedef-redecl2.c
raw| 1 | /* PR c/70297 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "" } */ |
| 4 | |
| 5 | #define N 64 |
| 6 | |
| 7 | typedef int T; |
| 8 | typedef int T __attribute__((aligned (N))); |
| 9 | typedef int T __attribute__((aligned (N * 2))); |
| 10 | typedef int T __attribute__((aligned (N))); |
| 11 | typedef int T; |
| 12 | |
| 13 | _Static_assert (_Alignof (T) == N * 2, "N * 2"); |