Debian Codegraph @

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

raw
1 /* Test C23 typeof and typeof_unqual on qualified arrays (bug 112841). */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4
5 const int a[] = { 1, 2, 3 };
6 int b[3];
7 extern typeof (a) a;
8 extern typeof (const int [3]) a;
9 extern typeof_unqual (a) b;
10 extern typeof_unqual (const int [3]) b;