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
Small ChangeLog tweak.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr35456.c
blob
17c70bcc4d0a3ec84ab7729c821502e0b369a922
1
/* { dg-skip-if "signed zero not supported" { "vax-*-*" } { "*" } { "" } } */
2
extern
void
abort
(
void
);
3
4
double
5
__attribute__
((
noinline
))
6
not_fabs
(
double
x
)
7
{
8
return
x
>=
0.0
?
x
: -
x
;
9
}
10
11
int
main
()
12
{
13
double
x
= -
0.0
;
14
double
y
;
15
16
y
=
not_fabs
(
x
);
17
18
if
(!
__builtin_signbit
(
y
))
19
abort
();
20
21
return
0
;
22
}