comparison gcc/testsuite/gcc.dg/pr46878-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR rtl-optimization/46878 */
2 /* Make sure this doesn't ICE. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
5
6 int __foo (void);
7 int __bar (void);
8
9 struct baz
10 {
11 int *newp;
12 };
13
14 int
15 get_ice (int *op, struct baz *ret)
16 {
17 int *tmpp;
18 int c;
19 c = (__foo () != 1);
20 if (__bar ())
21 {
22 return (1);
23 }
24 if (c)
25 tmpp = op;
26 if (tmpp)
27 {
28 }
29 else if (c)
30 {
31 ret->newp = tmpp;
32 }
33 }