Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr92088-2.c

raw
1 /* { dg-do compile } */
2
3 void foo(int n)
4 {
5 struct X { int a[n]; } y;
6
7 struct X baz (struct X x)
8 {
9 x.a[0] = 1;
10 return x;
11 }
12
13 y.a[0] = 0;
14 y = baz(y);
15 if (y.a[0] != 1)
16 __builtin_abort ();
17 }