Debian Codegraph @

gcc/testsuite/gcc.dg/gnu23-tag-6.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu23" } */
3
4 int f(int n)
5 {
6 struct foo { struct { char (*x)[n]; }; } a;
7 {
8 struct foo { struct { char (*x)[n]; }; } b = a;
9 }
10 }
11
12 int g(int n)
13 {
14 struct foo { struct { char (*x)[n]; }; } a;
15 {
16 struct foo { struct { char (*x)[n]; }; } *b = &a;
17 }
18 }
19
20 int h(int n)
21 {
22 struct foo { struct { struct bar { char (*x)[n]; }* p; }; } a;
23 {
24 struct foo { struct { struct bar { char (*x)[n]; }* p; }; } *b = &a;
25 }
26 }
27