2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / typeof-2.c
blobe9169003a9b8638fde90257b373dd2ac2c542c3b
1 /* Test qualifier discard of typeof for atomic types. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c11" } */
5 extern int i;
7 extern int * p;
9 extern int _Atomic const ci;
10 extern __typeof (ci) i;
12 extern int _Atomic volatile vi;
13 extern __typeof (vi) i;
15 extern int * _Atomic restrict ri;
16 extern __typeof (ri) p;
18 void f(void)
20 __auto_type aci = ci;
21 int *paci = &aci;
23 __auto_type avi = vi;
24 int *pavi = &avi;
26 __auto_type ari = ri;
27 int **pari = &ari;