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
blob6830359e1f901dc301a1f45fa2a874b50bbff016
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;
9 double foo (void)
11 if (once++)
12 abort ();
13 return 0.0 / 0.0;
16 double x;
17 int main (void)
19 x = sqrt (foo ());
20 return 0;