comparison gcc/testsuite/gcc.dg/tree-ssa/pr21332.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 /* { dg-do run } */
2 /* { dg-options "-O2" } */
3
4 // this testcase fails also on amd64:
5
6 extern void abort (void);
7
8 int f ()
9 {
10 return -1;
11 }
12
13 int main ()
14 {
15 int b, c, i;
16
17 b = 0;
18 c = f ();
19 if (c <= 0)
20 {
21 c = -c;
22 for (i = 0; i < c; i++)
23 b = 1;
24 if (!b)
25 abort ();
26 }
27 return 0;
28 }