aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2009-06-22 16:49:57 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2009-06-22 16:49:57 +0000
commitc681c82917e306448eb146612d11a009e5a35917 (patch)
tree057a4a8b99a538d50c268fcbfa231afd4160019c
parent7a5d2eb861a39a2422fb25e4e106941a5aba79d8 (diff)
downloadgcc-c681c82917e306448eb146612d11a009e5a35917.zip
gcc-c681c82917e306448eb146612d11a009e5a35917.tar.gz
gcc-c681c82917e306448eb146612d11a009e5a35917.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog11
-rw-r--r--libstdc++-v3/testsuite/29_atomics/atomic/cons/assign_neg.cc2
-rw-r--r--libstdc++-v3/testsuite/29_atomics/atomic/cons/copy_neg.cc2
-rw-r--r--libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/assign_neg.cc4
-rw-r--r--libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/copy_neg.cc4
-rw-r--r--libstdc++-v3/testsuite/util/testsuite_common_types.h14
6 files changed, 26 insertions, 11 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index e8c983b..fc14048 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,16 @@
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
possibly unused.
* testsuite/23_containers/list/invalidation/2.cc: Likewise.
diff --git a/libstdc++-v3/testsuite/29_atomics/atomic/cons/assign_neg.cc b/libstdc++-v3/testsuite/29_atomics/atomic/cons/assign_neg.cc
index e580d80..0b73b08 100644
--- a/libstdc++-v3/testsuite/29_atomics/atomic/cons/assign_neg.cc
+++ b/libstdc++-v3/testsuite/29_atomics/atomic/cons/assign_neg.cc
@@ -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 }
diff --git a/libstdc++-v3/testsuite/29_atomics/atomic/cons/copy_neg.cc b/libstdc++-v3/testsuite/29_atomics/atomic/cons/copy_neg.cc
index 9108b4b..a261a84 100644
--- a/libstdc++-v3/testsuite/29_atomics/atomic/cons/copy_neg.cc
+++ b/libstdc++-v3/testsuite/29_atomics/atomic/cons/copy_neg.cc
@@ -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 }
diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/assign_neg.cc b/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/assign_neg.cc
index cf69ab2..a488cb0 100644
--- a/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/assign_neg.cc
+++ b/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/assign_neg.cc
@@ -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 }
diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/copy_neg.cc b/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/copy_neg.cc
index 369cba8..71eb282 100644
--- a/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/copy_neg.cc
+++ b/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/copy_neg.cc
@@ -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 }
diff --git a/libstdc++-v3/testsuite/util/testsuite_common_types.h b/libstdc++-v3/testsuite/util/testsuite_common_types.h
index ba8a967..c6c0068 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;
}
};