gcc/testsuite/gcc.dg/Wc99-c11-compat-4.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-std=gnu99 -pedantic-errors -Wno-c99-c11-compat" } */ |
| 3 | |
| 4 | struct S { int i; struct { int a; }; }; |
| 5 | _Noreturn void foo (void); |
| 6 | typedef int A; |
| 7 | typedef int A; |
| 8 | _Thread_local int i; |
| 9 | _Static_assert (1, "foo"); |
| 10 | _Atomic int a; |
| 11 | _Alignas (int) int aa; |
| 12 | enum e { E = _Alignof (double) }; |
| 13 | |
| 14 | void |
| 15 | fn (int n) |
| 16 | { |
| 17 | _Generic (n, int: 0); |
| 18 | } |