diff options
author | Joseph Myers <joseph@codesourcery.com> | 2006-11-14 16:01:41 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2006-11-14 16:01:41 +0000 |
commit | 30cc554051588c971f2dab52e75e3aed5abcb615 (patch) | |
tree | dee6d68da14d3cf143c7cb925c6efd590b769703 /libstdc++-v3 | |
parent | 467b1fc689362e64690d5791ba60ad34c3bf530f (diff) | |
download | gcc-30cc554051588c971f2dab52e75e3aed5abcb615.tar.gz |
13450.cc: Do not test long double in IBM long double case.
* testsuite/26_numerics/complex/13450.cc: Do not test long double
in IBM long double case.
From-SVN: r118814
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/26_numerics/complex/13450.cc | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 12c49bbb74a..2118ba1bcc9 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. 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() |