Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / gcc.dg / Wduplicate-decl-specifier-c11.c
blobc2db525aaf91ca3552915f97b06dff94a320bfbc
1 /* { dg-do compile } */
2 /* { dg-options "-std=c11 -Wduplicate-decl-specifier" } */
4 typedef _Atomic int AT1;
5 #define AT2 _Atomic int
7 void
8 foo (void)
10 _Atomic AT1 x1;
11 _Atomic AT2 x2;
12 AT1 _Atomic x3;
13 AT2 _Atomic x4;
14 _Atomic int _Atomic x5; /* { dg-warning "duplicate ._Atomic." } */
17 void a1(_Atomic AT1 t) { }
18 void a2(_Atomic AT2 t) { }
19 void a3(AT1 _Atomic t) { }
20 void a4(AT2 _Atomic t) { }
21 void a5(_Atomic int _Atomic t) { } /* { dg-warning "duplicate ._Atomic." } */
23 typedef _Atomic AT1 AAT1;
24 typedef _Atomic AT2 AAT2;
25 typedef AT1 _Atomic AT1A;
26 typedef AT2 _Atomic AT2A;
27 typedef _Atomic int _Atomic AIA; /* { dg-warning "duplicate ._Atomic." } */