OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr41643.c
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
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 }