]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/Wc99-c11-compat-3.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / Wc99-c11-compat-3.c
CommitLineData
35aff4fb
MP
1/* { dg-do compile } */
2/* { dg-options "-std=gnu11 -pedantic-errors -Wc99-c11-compat" } */
3
4struct S { int i; struct { int a; }; }; /* { dg-warning "ISO C99 doesn.t support unnamed structs/unions" } */
5_Noreturn void foo (void); /* { dg-warning "ISO C99 does not support ._Noreturn." } */
6typedef int A;
7typedef int A; /* { dg-warning "redefinition of typedef .A." } */
8_Thread_local int i; /* { dg-warning "ISO C99 does not support ._Thread_local." } */
9_Static_assert (1, "foo"); /* { dg-warning "ISO C99 does not support ._Static_assert." } */
10_Atomic int a; /* { dg-warning "ISO C99 does not support the ._Atomic. qualifier" } */
11_Alignas (int) int aa; /* { dg-warning "ISO C99 does not support ._Alignas." } */
12enum e { E = _Alignof (double) }; /* { dg-warning "ISO C99 does not support ._Alignof." } */
13
14void
15fn (int n)
16{
17 _Generic (n, int: 0); /* { dg-warning "ISO C99 does not support ._Generic." } */
18}