[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr41643.c
blob7c0743da41a8fae17b9fe4a818bfcb5630097f5f
1 /* PR tree-optimization/41643 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-tree-dce" } */
5 struct S { int a; };
7 int
8 f (struct S *x)
10 int a = x->a;
11 if (a)
12 return f (x) + a;
13 else
14 return f (x);