1 /* PR tree-optimization/83605 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -ftrapv -fexceptions -fnon-call-exceptions" } */
4
5 int a;
6
7 int
8 foo (int x)
9 {
10 int b = a;
11 {
12 int c;
13 int *d = (x == 0) ? &c : &b;
14
15 for (a = 0; a < 2; ++a)
16 c = (x + b) < a;
17
18 return *d;
19 }
20 }