comparison gcc/testsuite/gcc.dg/pr48768.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 debug/48768 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fcompare-debug" } */
4 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
5
6 int a, b;
7
8 int
9 bar (void)
10 {
11 int i, j = 1;
12 for (i = 0; i != 10; i++)
13 {
14 lab:
15 if (i)
16 {
17 int *k = &j;
18 }
19 else if (j)
20 goto lab;
21 }
22 return 1;
23 }
24
25 inline int
26 foo (int x)
27 {
28 unsigned int c = x;
29 int d = x;
30 if (bar ())
31 for (; c; c++)
32 while (x >= 0)
33 if (foo (d) >= 0)
34 {
35 d = bar ();
36 a = b ? b : 1;
37 }
38 return 0;
39 }