1 /* PR tree-optimization/41643 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-tree-dce" } */
4 
5 struct S { int a; };
6 
7 int
f(struct S * x)8 f (struct S *x)
9 {
10   int a = x->a;
11   if (a)
12     return f (x) + a;
13   else
14     return f (x);
15 }
16