1 /* Test qualifier discard of typeof for atomic types. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c11" } */
5 /* Check that the qualifiers are discarded for atomic types. */
11 extern int _Atomic
const ci
;
12 extern __typeof (ci
) i
;
14 extern int _Atomic
volatile vi
;
15 extern __typeof (vi
) i
;
17 extern int * _Atomic restrict ri
;
18 extern __typeof (ri
) p
;
32 /* Check that the qualifiers are preserved for non-atomic types. */
36 extern int volatile k
;
38 extern int * restrict q
;
41 extern __typeof (nci
) j
;
43 extern int volatile nvi
;
44 extern __typeof (nvi
) k
;
46 extern int * restrict nri
;
47 extern __typeof (nri
) q
;
51 __auto_type aci
= nci
;
52 int const *paci
= &aci
;
54 __auto_type avi
= nvi
;
55 int volatile *pavi
= &avi
;
57 __auto_type ari
= nri
;
58 int * restrict
*pari
= &ari
;