repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
vrp12.c
blob
50552efa2841a573b9fec76a4f1c76ce5bd4b686
1
/* { dg-do link } */
2
/* { dg-options -O2 } */
3
4
extern
void
link_error
(
void
);
5
6
int
7
foo
(
int
i
)
8
{
9
int
x
;
10
11
x
=
i
;
12
if
(
i
< -
10
)
13
{
14
x
=
__builtin_abs
(
i
);
15
/* VRP was incorrectly folding this to if (1). */
16
if
(
x
<
0
)
17
link_error
();
18
}
19
20
return
x
;
21
}
22
23
int
24
main
()
25
{
26
foo
(-
30
);
27
}