From b1e282ca1871497b59064eec5aacaa623f5fab2e Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 3 Apr 2017 18:16:11 +0100 Subject: [PATCH] Uncomment std::reference_wrapper tests that no longer fail * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests that no longer fail. From-SVN: r246658 --- libstdc++-v3/ChangeLog | 3 +++ .../testsuite/20_util/reference_wrapper/invoke.cc | 11 +++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c344310a2c3..fcb54b0029c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2017-04-03 Jonathan Wakely + * testsuite/20_util/reference_wrapper/invoke.cc: Uncomment tests + that no longer fail. + * include/bits/ios_base.h: Correct comment. * testsuite/util/testsuite_hooks.h: Likewise. diff --git a/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke.cc b/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke.cc index 8fd5470639c..c4a45378a51 100644 --- a/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke.cc +++ b/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke.cc @@ -73,8 +73,7 @@ void test01() int (::X::* p_foo_c)(float) const = &::X::foo_c; int (::X::* p_foo_v)(float) volatile = &::X::foo_v; int (::X::* p_foo_cv)(float) const volatile = &::X::foo_cv; - int (::X::* p_foo_varargs)(float, ...) __attribute__((unused)) - = &::X::foo_varargs; + int (::X::* p_foo_varargs)(float, ...) = &::X::foo_varargs; int ::X::* p_bar = &::X::bar; const float pi = 3.14; @@ -96,10 +95,10 @@ void test01() VERIFY(ref(p_foo_v)(xp, pi) == 3); VERIFY(ref(p_foo_cv)(x, pi) == 3); VERIFY(ref(p_foo_cv)(xp, pi) == 3); - // VERIFY(ref(p_foo_varargs)(x, pi) == 3); - // VERIFY(ref(p_foo_varargs)(xp, pi, 1, 1) == 3); - // VERIFY(ref(p_foo_varargs)(x, pi, 1, 1) == 3); - // VERIFY(ref(p_foo_varargs)(xp, pi) == 3); + VERIFY(ref(p_foo_varargs)(x, pi) == 3); + VERIFY(ref(p_foo_varargs)(xp, pi, 1, 1) == 3); + VERIFY(ref(p_foo_varargs)(x, pi, 1, 1) == 3); + VERIFY(ref(p_foo_varargs)(xp, pi) == 3); // Member data pointers VERIFY(ref(p_bar)(x) == 17); -- 2.30.2