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
libquadmath: Fix up libquadmath/math/sqrtq.c compilation in some powerpc* configurati...
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
ieee
/
20041213-1.c
blob
6830359e1f901dc301a1f45fa2a874b50bbff016
1
#if defined (__AVR__) && (__SIZEOF_DOUBLE__ == __SIZEOF_FLOAT__)
2
extern
double
sqrt
(
double
)
__asm
(
"sqrtf"
);
3
#else
4
extern
double
sqrt
(
double
);
5
#endif
6
extern
void
abort
(
void
);
7
int
once
;
8
9
double
foo
(
void
)
10
{
11
if
(
once
++)
12
abort
();
13
return
0.0
/
0.0
;
14
}
15
16
double
x
;
17
int
main
(
void
)
18
{
19
x
=
sqrt
(
foo
());
20
return
0
;
21
}