diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-14 10:15:50 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-01-14 10:15:50 +0000 |
commit | 896151f909dcbdd027f72a5de8ff37d2a3c58b50 (patch) | |
tree | 15db68855b30629572d5fe3777e839c3c43a6aab /libstdc++-v3 | |
parent | 59db13d3911068b52ef56802fd2368352eafe404 (diff) | |
download | gcc-896151f909dcbdd027f72a5de8ff37d2a3c58b50.tar.gz |
2006-01-14 Paolo Carlini <pcarlini@suse.de>
* testsuite/tr1/8_c_compatibility/complex/overloads_int.cc:
Fix wrong test (don't pick by mistake the (const complex<>&, int)
overload); add some.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109700 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/overloads_int.cc | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ca1b988e423..49384c9508f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2006-01-14 Paolo Carlini <pcarlini@suse.de> + + * testsuite/tr1/8_c_compatibility/complex/overloads_int.cc: + Fix wrong test (don't pick by mistake the (const complex<>&, int) + overload); add some. + 2006-01-13 Paolo Carlini <pcarlini@suse.de> Howard Hinnant <hhinnant@apple.com> diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/overloads_int.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/overloads_int.cc index 97b4cd2faf9..c5fcd84cf9d 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/overloads_int.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/complex/overloads_int.cc @@ -67,13 +67,19 @@ void test01() check_ret_type<cmplx_d_type>(pow(cmplx_f_type(f1, f1), u1)); check_ret_type<cmplx_d_type>(pow(cmplx_f_type(f1, f1), l1)); check_ret_type<cmplx_d_type>(pow(cmplx_d_type(d1, d1), i1)); - VERIFY( pow(cmplx_d_type(d1, d1), i1) == pow(cmplx_d_type(d1, d1), d1) ); + + // See above comment. + // VERIFY( pow(cmplx_d_type(d1, d1), i1) == pow(cmplx_d_type(d1, d1), d1) ); + VERIFY( pow(cmplx_d_type(d1, d1), u1) == pow(cmplx_d_type(d1, d1), d1) ); + VERIFY( pow(cmplx_d_type(d1, d1), l1) == pow(cmplx_d_type(d1, d1), d1) ); check_ret_type<cmplx_d_type>(pow(i1, cmplx_f_type(f1, f1))); check_ret_type<cmplx_d_type>(pow(u1, cmplx_f_type(f1, f1))); check_ret_type<cmplx_d_type>(pow(l1, cmplx_f_type(f1, f1))); check_ret_type<cmplx_d_type>(pow(i1, cmplx_d_type(d1, d1))); VERIFY( pow(i1, cmplx_d_type(d1, d1)) == pow(d1, cmplx_d_type(d1, d1)) ); + VERIFY( pow(u1, cmplx_d_type(d1, d1)) == pow(d1, cmplx_d_type(d1, d1)) ); + VERIFY( pow(l1, cmplx_d_type(d1, d1)) == pow(d1, cmplx_d_type(d1, d1)) ); check_ret_type<double>(real(i1)); VERIFY( real(i1) == real(d1) ); |