1 /* PR tree-optimization/82387 */
2
3 struct A { int b; };
4 int f = 1;
5
6 struct A
foo(void)7 foo (void)
8 {
9 struct A h[] = {
10 {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1},
11 {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1},
12 {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1},
13 {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1},
14 {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1},
15 {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1},
16 {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1},
17 };
18 return h[24];
19 }
20
21 int
main()22 main ()
23 {
24 struct A i = foo (), j = i;
25 j.b && (f = 0);
26 return f;
27 }
28