From c6954b8dfa23842984360e66d2949b7d74f0d991 Mon Sep 17 00:00:00 2001 From: paolo Date: Mon, 22 Jun 2009 16:49:57 +0000 Subject: 2009-06-22 Paolo Carlini * testsuite/util/testsuite_common_types.h (bitwise_operators, bitwise_assignment_operators): Initialize a and b. (struct has_bitwise_operators): Do not call the latter. * testsuite/29_atomics/atomic_integral/cons/assign_neg.cc: Adjust dg-error line numbers. * testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise. * testsuite/29_atomics/atomic/cons/assign_neg.cc: Likewise. * testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148809 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/testsuite/util/testsuite_common_types.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'libstdc++-v3/testsuite/util/testsuite_common_types.h') diff --git a/libstdc++-v3/testsuite/util/testsuite_common_types.h b/libstdc++-v3/testsuite/util/testsuite_common_types.h index ba8a967feb3..c6c00689f3d 100644 --- a/libstdc++-v3/testsuite/util/testsuite_common_types.h +++ b/libstdc++-v3/testsuite/util/testsuite_common_types.h @@ -387,8 +387,8 @@ namespace __gnu_test void bitwise_operators() { - _Tp a; - _Tp b; + _Tp a = _Tp(); + _Tp b = _Tp(); a | b; a & b; a ^ b; @@ -399,8 +399,8 @@ namespace __gnu_test void bitwise_assignment_operators() { - _Tp a; - _Tp b; + _Tp a = _Tp(); + _Tp b = _Tp(); a |= b; // set a &= ~b; // clear a ^= b; @@ -426,7 +426,11 @@ namespace __gnu_test { void __constraint() { - bitwise_assignment_operators<_Tp>(); + _Tp a; + _Tp b; + a |= b; // set + a &= ~b; // clear + a ^= b; } }; -- cgit v1.2.1