testsuite_common_types.h (bitwise_operators, [...]): Initialize a and b.

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.

From-SVN: r148809
This commit is contained in:
Paolo Carlini 2009-06-22 16:49:57 +00:00 committed by Paolo Carlini
parent 7a5d2eb861
commit c681c82917
6 changed files with 26 additions and 11 deletions

View File

@ -1,3 +1,14 @@
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.
2009-06-22 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/23_containers/list/invalidation/1.cc: Mark test as

View File

@ -29,7 +29,7 @@ int main()
return 0;
}
// { dg-error "used here" "" { target *-*-* } 521 }
// { dg-error "used here" "" { target *-*-* } 525 }
// { dg-error "deleted function" "" { target *-*-* } 239 }
// { dg-error "deleted function" "" { target *-*-* } 257 }
// { dg-error "deleted function" "" { target *-*-* } 275 }

View File

@ -29,7 +29,7 @@ int main()
return 0;
}
// { dg-error "used here" "" { target *-*-* } 560 }
// { dg-error "used here" "" { target *-*-* } 564 }
// { dg-error "deleted function" "" { target *-*-* } 238 }
// { dg-error "deleted function" "" { target *-*-* } 256 }
// { dg-error "deleted function" "" { target *-*-* } 274 }

View File

@ -30,11 +30,11 @@ int main()
return 0;
}
// { dg-error "used here" "" { target *-*-* } 521 }
// { dg-error "used here" "" { target *-*-* } 525 }
// { dg-excess-errors "deleted function" }
// { dg-excess-errors "deleted function" }
// { dg-error "instantiated from" "" { target *-*-* } 29 }
// { dg-error "instantiated from" "" { target *-*-* } 528 }
// { dg-error "instantiated from" "" { target *-*-* } 532 }
// { dg-error "instantiated from" "" { target *-*-* } 170 }
// { dg-error "instantiated from" "" { target *-*-* } 399 }
// { dg-error "instantiated from" "" { target *-*-* } 168 }

View File

@ -30,11 +30,11 @@ int main()
return 0;
}
// { dg-error "used here" "" { target *-*-* } 560 }
// { dg-error "used here" "" { target *-*-* } 564 }
// { dg-excess-errors "deleted function" }
// { dg-excess-errors "deleted function" }
// { dg-error "instantiated from" "" { target *-*-* } 29 }
// { dg-error "instantiated from" "" { target *-*-* } 566 }
// { dg-error "instantiated from" "" { target *-*-* } 570 }
// { dg-error "instantiated from" "" { target *-*-* } 170 }
// { dg-error "instantiated from" "" { target *-*-* } 399 }
// { dg-error "instantiated from" "" { target *-*-* } 168 }

View File

@ -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;
}
};