Debian Codegraph @

gcc/testsuite/gcc.dg/c23-typeof-5.c

raw
1 /* Test C23 typeof and typeof_unqual on arrays of atomic elements (bug
2 117781). */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c23 -pedantic-errors" } */
5
6 _Atomic int a[2], b[2][2];
7 const _Atomic int c[2], d[2][2];
8
9 extern typeof (a) a;
10 extern typeof (b) b;
11 extern typeof (c) c;
12 extern typeof (d) d;
13 extern typeof_unqual (a) a;
14 extern typeof_unqual (b) b;
15 extern typeof_unqual (c) a;
16 extern typeof_unqual (d) b;
17 extern typeof_unqual (volatile _Atomic int [2]) a;
18 extern typeof_unqual (volatile _Atomic int [2][2]) b;