Commit c681c829 by Paolo Carlini Committed by Paolo Carlini

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
parent 7a5d2eb8
2009-06-22 Paolo Carlini <paolo.carlini@oracle.com> 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 * testsuite/23_containers/list/invalidation/1.cc: Mark test as
possibly unused. possibly unused.
* testsuite/23_containers/list/invalidation/2.cc: Likewise. * testsuite/23_containers/list/invalidation/2.cc: Likewise.
......
...@@ -29,7 +29,7 @@ int main() ...@@ -29,7 +29,7 @@ int main()
return 0; 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 *-*-* } 239 }
// { dg-error "deleted function" "" { target *-*-* } 257 } // { dg-error "deleted function" "" { target *-*-* } 257 }
// { dg-error "deleted function" "" { target *-*-* } 275 } // { dg-error "deleted function" "" { target *-*-* } 275 }
......
...@@ -29,7 +29,7 @@ int main() ...@@ -29,7 +29,7 @@ int main()
return 0; 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 *-*-* } 238 }
// { dg-error "deleted function" "" { target *-*-* } 256 } // { dg-error "deleted function" "" { target *-*-* } 256 }
// { dg-error "deleted function" "" { target *-*-* } 274 } // { dg-error "deleted function" "" { target *-*-* } 274 }
......
...@@ -30,11 +30,11 @@ int main() ...@@ -30,11 +30,11 @@ int main()
return 0; 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-excess-errors "deleted function" } // { dg-excess-errors "deleted function" }
// { dg-error "instantiated from" "" { target *-*-* } 29 } // { 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 *-*-* } 170 }
// { dg-error "instantiated from" "" { target *-*-* } 399 } // { dg-error "instantiated from" "" { target *-*-* } 399 }
// { dg-error "instantiated from" "" { target *-*-* } 168 } // { dg-error "instantiated from" "" { target *-*-* } 168 }
......
...@@ -30,11 +30,11 @@ int main() ...@@ -30,11 +30,11 @@ int main()
return 0; 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-excess-errors "deleted function" } // { dg-excess-errors "deleted function" }
// { dg-error "instantiated from" "" { target *-*-* } 29 } // { 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 *-*-* } 170 }
// { dg-error "instantiated from" "" { target *-*-* } 399 } // { dg-error "instantiated from" "" { target *-*-* } 399 }
// { dg-error "instantiated from" "" { target *-*-* } 168 } // { dg-error "instantiated from" "" { target *-*-* } 168 }
......
...@@ -387,8 +387,8 @@ namespace __gnu_test ...@@ -387,8 +387,8 @@ namespace __gnu_test
void void
bitwise_operators() bitwise_operators()
{ {
_Tp a; _Tp a = _Tp();
_Tp b; _Tp b = _Tp();
a | b; a | b;
a & b; a & b;
a ^ b; a ^ b;
...@@ -399,8 +399,8 @@ namespace __gnu_test ...@@ -399,8 +399,8 @@ namespace __gnu_test
void void
bitwise_assignment_operators() bitwise_assignment_operators()
{ {
_Tp a; _Tp a = _Tp();
_Tp b; _Tp b = _Tp();
a |= b; // set a |= b; // set
a &= ~b; // clear a &= ~b; // clear
a ^= b; a ^= b;
...@@ -426,7 +426,11 @@ namespace __gnu_test ...@@ -426,7 +426,11 @@ namespace __gnu_test
{ {
void __constraint() void __constraint()
{ {
bitwise_assignment_operators<_Tp>(); _Tp a;
_Tp b;
a |= b; // set
a &= ~b; // clear
a ^= b;
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment