diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2008-10-10 14:58:48 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2008-10-10 14:58:48 +0000 |
commit | 6cbdd6b258d2e922f755c54c24ab780940955fee (patch) | |
tree | 2c44e4da18affb6579ab2d6e6aa02f66b8c6d969 | |
parent | 4661c8fd43ca731dc06329a1cfb628863075dbb2 (diff) | |
download | gcc-6cbdd6b258d2e922f755c54c24ab780940955fee.zip gcc-6cbdd6b258d2e922f755c54c24ab780940955fee.tar.gz gcc-6cbdd6b258d2e922f755c54c24ab780940955fee.tar.bz2 |
24803.cc: Avoid uninitialized warnings.
2008-10-10 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/20_util/reference_wrapper/24803.cc: Avoid uninitialized
warnings.
From-SVN: r141041
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/20_util/reference_wrapper/24803.cc | 20 |
2 files changed, 15 insertions, 10 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 49fcab7..2d969f1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2008-10-10 Paolo Carlini <paolo.carlini@oracle.com> + * testsuite/20_util/reference_wrapper/24803.cc: Avoid uninitialized + warnings. + +2008-10-10 Paolo Carlini <paolo.carlini@oracle.com> + * include/std/system_error (native_category): Remove. (posix_category): Add. (error_code::error_code(_ErrorCodeEnum, typename enable_if<>:type*): diff --git a/libstdc++-v3/testsuite/20_util/reference_wrapper/24803.cc b/libstdc++-v3/testsuite/20_util/reference_wrapper/24803.cc index eb3d997..d948235 100644 --- a/libstdc++-v3/testsuite/20_util/reference_wrapper/24803.cc +++ b/libstdc++-v3/testsuite/20_util/reference_wrapper/24803.cc @@ -59,29 +59,29 @@ void test01() const test_type* null_ttc = 0; int zero; - std::reference_wrapper<double (int)>* pr1; + std::reference_wrapper<double (int)>* pr1(0); verify_return_type((*pr1)(0), double()); - std::reference_wrapper<double (*)(int)>* pr2; + std::reference_wrapper<double (*)(int)>* pr2(0); verify_return_type((*pr2)(0), double()); - std::reference_wrapper<int (test_type::*)()>* pr3; + std::reference_wrapper<int (test_type::*)()>* pr3(0); verify_return_type((*pr3)(null_tt), int()); - std::reference_wrapper<int (test_type::*)()const>* pr4; + std::reference_wrapper<int (test_type::*)()const>* pr4(0); verify_return_type((*pr4)(null_ttc), int()); - std::reference_wrapper<functor1>* pr5; + std::reference_wrapper<functor1>* pr5(0); // libstdc++/24803 // FIXME: verify_return_type((*pr5)(0), double()); verify_return_type((*pr5)(zero), double()); - std::reference_wrapper<double (int, char)>* pr1b; + std::reference_wrapper<double (int, char)>* pr1b(0); verify_return_type((*pr1b)(0,0), double()); - std::reference_wrapper<double (*)(int, char)>* pr2b; + std::reference_wrapper<double (*)(int, char)>* pr2b(0); verify_return_type((*pr2b)(0,0), double()); - std::reference_wrapper<int (test_type::*)(char)>* pr3b; + std::reference_wrapper<int (test_type::*)(char)>* pr3b(0); verify_return_type((*pr3b)(null_tt,zero), int()); - std::reference_wrapper<int (test_type::*)()const>* pr4b; + std::reference_wrapper<int (test_type::*)()const>* pr4b(0); verify_return_type((*pr4b)(null_ttc), int()); - std::reference_wrapper<functor2>* pr5b; + std::reference_wrapper<functor2>* pr5b(0); // libstdc++/24803 // FIXME: verify_return_type((*pr5b)(0,0), double()); |