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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
gcc.dg
/
fold-abs-2.c
blob
6291d7e5384ce8be1c910361d4eafcbce23e482b
1
/* { dg-do run } */
2
/* { dg-options "-O1 -fwrapv" } */
3
#include <limits.h>
4
void
exit
(
int
);
5
void
abort
();
6
#define ABS(x) (x > 0 ? x : -x)
7
int
f
(
int
a
) {
8
if
(
ABS
(
a
) >=
0
)
return
1
;
9
else return
0
;
10
}
11
12
int
main
(
int
argc
,
char
*
argv
[]) {
13
if
(
f
(
INT_MIN
))
14
abort
();
15
else
16
exit
(
0
);
17
}