PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr33382.c
blobee539643ae67906f863c4798e102ea951d99da3b
1 struct Foo {
2 int i;
3 int j[];
4 };
6 struct Foo x = { 1, { 2, 0, 2, 3 } };
8 int foo(void)
10 x.j[0] = 1;
11 return x.j[1];
14 extern void abort(void);
16 int main()
18 if (foo() != 0)
19 abort();
20 return 0;