1 /* PR tree-optimization/83581 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -fno-tree-copy-prop -fno-tree-loop-im" } */
4
5 int a, b, c;
6
7 int
8 foo (int x)
9 {
10 int *d = &x;
11 while (a < 1)
12 {
13 for (b = 0; b < 2; ++b)
14 {
15 *d += !!x + 1;
16 d = &c;
17 }
18 ++a;
19 }
20 return *d;
21 }