diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-22 16:49:57 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-22 16:49:57 +0000 |
commit | c6954b8dfa23842984360e66d2949b7d74f0d991 (patch) | |
tree | 057a4a8b99a538d50c268fcbfa231afd4160019c /libstdc++-v3/testsuite/util/testsuite_common_types.h | |
parent | b91bd47228cab7b9155ee4000be29657db44926f (diff) | |
download | gcc-c6954b8dfa23842984360e66d2949b7d74f0d991.tar.gz |
2009-06-22 Paolo Carlini <paolo.carlini@oracle.com>
* 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
Diffstat (limited to 'libstdc++-v3/testsuite/util/testsuite_common_types.h')
-rw-r--r-- | libstdc++-v3/testsuite/util/testsuite_common_types.h | 14 |
1 files changed, 9 insertions, 5 deletions
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; } }; |