]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
13450.cc: Do not test long double in IBM long double case.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 14 Nov 2006 16:01:41 +0000 (16:01 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 14 Nov 2006 16:01:41 +0000 (16:01 +0000)
* testsuite/26_numerics/complex/13450.cc: Do not test long double
in IBM long double case.

From-SVN: r118814

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/26_numerics/complex/13450.cc

index 12c49bbb74a343f74febd3b08d5b9f6ca56bdf88..2118ba1bcc905c165c30f0e4cba015ff8f4c2b0e 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-14  Joseph Myers  <joseph@codesourcery.com>
+
+       * testsuite/26_numerics/complex/13450.cc: Do not test long double
+       in IBM long double case.
+
 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * configure: Regenerated.
index f5640dec879b65dfee27d9c3289356496eb722e8..22bdb5eed4465db50ff7d61fc1d03576f376efe2 100644 (file)
@@ -61,6 +61,11 @@ void test01()
   d2 = 1.4;
   test01_do(d1, d2);
 
+#if __LDBL_MANT_DIG__ != 106
+  /* For IBM long double, epsilon is too small (since 1.0 plus any
+     double is representable) to be able to expect results within
+     epsilon * 100 (which may be much less than 1ulp for a particular
+     long double value).  */
   long double ld1 = -1.0l;
   long double ld2 = 0.5l;
   test01_do(ld1, ld2);
@@ -68,6 +73,7 @@ void test01()
   ld1 = -3.2l;
   ld2 = 1.4l;
   test01_do(ld1, ld2);
+#endif
 }
 
 int main()