OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR rtl-optimization/52139
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr21332.c
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
}