Debian Codegraph @

gcc/testsuite/gcc.dg/c23-tag-composite-11.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-std=c23" } */
3
4 void f(int n, int m)
5 {
6 typedef struct fo { int a; } aaa[n];
7 {
8 typedef struct fo { int a; } bbb[m];
9
10 goto foo; /* { dg-error "jump" } */
11 typeof((1 ? (aaa*)0 : (bbb*)0)) x;
12 foo:
13 }
14 }
15
16 void g(int n, int m)
17 {
18 typedef struct fo { int a; } aaa[n];
19 {
20 typedef struct fo { int a; } bbb[];
21
22 goto foo; /* { dg-error "jump" } */
23 typeof((1 ? (aaa*)0 : (bbb*)0)) x;
24 foo:
25 }
26 }
27