[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / Wc99-c11-compat-4.c
blob511ccee42d05301135167000301b8901040f8cf4
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu99 -pedantic-errors -Wno-c99-c11-compat" } */
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) };
14 void
15 fn (int n)
17 _Generic (n, int: 0);