summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/26_numerics
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-14 16:01:41 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-14 16:01:41 +0000
commit1f2f350e7361895e40a8f63518b921d64a76cf3f (patch)
treedee6d68da14d3cf143c7cb925c6efd590b769703 /libstdc++-v3/testsuite/26_numerics
parent0048238ff694b35318bd907b1d24451eb97d372c (diff)
downloadgcc-1f2f350e7361895e40a8f63518b921d64a76cf3f.tar.gz
* testsuite/26_numerics/complex/13450.cc: Do not test long double
in IBM long double case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118814 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/26_numerics')
-rw-r--r--libstdc++-v3/testsuite/26_numerics/complex/13450.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/26_numerics/complex/13450.cc b/libstdc++-v3/testsuite/26_numerics/complex/13450.cc
index f5640dec879..22bdb5eed44 100644
--- a/libstdc++-v3/testsuite/26_numerics/complex/13450.cc
+++ b/libstdc++-v3/testsuite/26_numerics/complex/13450.cc
@@ -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()