[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr46878-1.c
blobb8722a40623cc419bb3a2fff13a8fc1af3c62d0e
1 /* PR rtl-optimization/46878 */
2 /* Make sure this doesn't ICE. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
6 int __foo (void);
7 int __bar (void);
9 struct baz
11 int *newp;
14 int
15 get_ice (int *op, struct baz *ret)
17 int *tmpp;
18 int c;
19 c = (__foo () != 1);
20 if (__bar ())
22 return (1);
24 if (c)
25 tmpp = op;
26 if (tmpp)
29 else if (c)
31 ret->newp = tmpp;