OSDN Git Service

* g++.dg/warn/huge-val1.C: Disable tests on values of HUGE_VAL,
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Sep 2005 00:03:15 +0000 (00:03 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Sep 2005 00:03:15 +0000 (00:03 +0000)
HUGE_VALF and HUGE_VALL unless __GLIBC__ is defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104361 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/huge-val1.C

index 7bb4fb1..46a639a 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-16  Joseph S. Myers  <joseph@codesourcery.com>
+
+       * g++.dg/warn/huge-val1.C: Disable tests on values of HUGE_VAL,
+       HUGE_VALF and HUGE_VALL unless __GLIBC__ is defined.
+
 2005-09-16  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/23914
index dfa89a6..2ddfae0 100644 (file)
@@ -18,6 +18,7 @@ extern void link_failure ();
 int
 main ()
 {
+#ifdef __GLIBC__
   if (HUGE_VAL != __builtin_huge_val ())
     link_failure ();
 #ifdef HUGE_VALF
@@ -28,4 +29,5 @@ main ()
   if (HUGE_VALL != __builtin_huge_vall ())
     link_failure ();
 #endif
+#endif
 }