2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr46878-1.c
blobf5b42de118be5c237fd0827470100a52b564d399
1 /* PR rtl-optimization/46878 */
2 /* Make sure this doesn't ICE. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
6 struct baz
8 int *newp;
9 };
11 int
12 get_ice (int *op, struct baz *ret)
14 int *tmpp;
15 int c;
16 c = (__foo () != 1);
17 if (__bar ())
19 return (1);
21 if (c)
22 tmpp = op;
23 if (tmpp)
26 else if (c)
28 ret->newp = tmpp;