projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.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
}