Sign in
llvm
/
llvm-archive
/
58b05407658c2569b188facf1d1f15e1c0e95aa4
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
ignored
/
gcc.dg
/
tree-ssa
/
vrp12.c
blob: 1714a561cd5cf35967ec9d53db4230d8c54c8713 [
file
] [
log
] [
blame
]
/* { dg-do link } */
/* { dg-options -O2 } */
foo
(
int
i
)
{
int
x
;
x
=
i
;
if
(
i
<
-
10
)
{
x
=
__builtin_abs
(
i
);
/* VRP was incorrectly folding this to if (1). */
if
(
x
<
0
)
link_error
();
}
return
x
;
}
main
()
{
foo
(-
30
);
}