1 /* { dg-do compile } */
2 /* { dg-options "-std=c11 -Wduplicate-decl-specifier" } */
4 typedef _Atomic
int AT1
;
5 #define AT2 _Atomic int
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." } */