Fix testsuite failures due to extra errors in strict dialects
authorJonathan Wakely <jwakely@redhat.com>
Fri, 19 Oct 2018 21:50:03 +0000 (22:50 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 19 Oct 2018 21:50:03 +0000 (22:50 +0100)
When __STRICT_ANSI__ is defined the incorrect allocators used in these
tests also trigger and additional static assertion. Prune those extra
errors so that the tests don't fail when built with strict dialects.

* testsuite/23_containers/deque/48101_neg.cc: Prune additional errors
printed when __STRICT_ANSI__ is defined.
* testsuite/23_containers/forward_list/48101_neg.cc: Likewise.
* testsuite/23_containers/list/48101_neg.cc: Likewise.
* testsuite/23_containers/multiset/48101_neg.cc: Likewise.
* testsuite/23_containers/set/48101_neg.cc: Likewise.
* testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
* testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
* testsuite/23_containers/vector/48101_neg.cc: Likewise.

From-SVN: r265333

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/23_containers/deque/48101_neg.cc
libstdc++-v3/testsuite/23_containers/forward_list/48101_neg.cc
libstdc++-v3/testsuite/23_containers/list/48101_neg.cc
libstdc++-v3/testsuite/23_containers/multiset/48101_neg.cc
libstdc++-v3/testsuite/23_containers/set/48101_neg.cc
libstdc++-v3/testsuite/23_containers/unordered_multiset/48101_neg.cc
libstdc++-v3/testsuite/23_containers/unordered_set/48101_neg.cc
libstdc++-v3/testsuite/23_containers/vector/48101_neg.cc

index b3688f89a56b077605976008f6ff7edbbb076d9e..e0265c51a4ab11b2085b2a00eed18581e4fd2a41 100644 (file)
@@ -1,5 +1,15 @@
 2018-10-19  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/23_containers/deque/48101_neg.cc: Prune additional errors
+       printed when __STRICT_ANSI__ is defined.
+       * testsuite/23_containers/forward_list/48101_neg.cc: Likewise.
+       * testsuite/23_containers/list/48101_neg.cc: Likewise.
+       * testsuite/23_containers/multiset/48101_neg.cc: Likewise.
+       * testsuite/23_containers/set/48101_neg.cc: Likewise.
+       * testsuite/23_containers/unordered_multiset/48101_neg.cc: Likewise.
+       * testsuite/23_containers/unordered_set/48101_neg.cc: Likewise.
+       * testsuite/23_containers/vector/48101_neg.cc: Likewise.
+
        * testsuite/23_containers/forward_list/requirements/
        explicit_instantiation/5.cc [__STRICT_ANSI__]: Don't test non-standard
        extension.
index cee0c9fde475a1f6f82b8bfcbf9500f65294c442..1f9e3e3b932dc2f46eefb23dd29b27ec7b0da0e0 100644 (file)
@@ -27,3 +27,4 @@ test01()
 
 // { dg-error "non-const, non-volatile value_type" "" { target *-*-* } 0 }
 // { dg-prune-output "std::allocator<.* has no member named " }
+// { dg-prune-output "must have the same value_type as its allocator" }
index fea18df8d42b78774ca5cb2565fed95d61b72de2..46163d17a95945b44ff199c7aa13e24e4e76357c 100644 (file)
@@ -27,3 +27,4 @@ test01()
 
 // { dg-error "non-const, non-volatile value_type" "" { target *-*-* } 0 }
 // { dg-prune-output "std::allocator<.* has no member named " }
+// { dg-prune-output "must have the same value_type as its allocator" }
index 478903a92c55f22973d061d0bd085889dfc0e0c6..45848e50809704cfe46c45dcf85c3226fd3606a7 100644 (file)
@@ -27,3 +27,4 @@ test01()
 
 // { dg-error "non-const, non-volatile value_type" "" { target *-*-* } 0 }
 // { dg-prune-output "std::allocator<.* has no member named " }
+// { dg-prune-output "must have the same value_type as its allocator" }
index b815f86219bb3ce7288aafdbf915d5cabbc95429..3b607f985ad2e4b5b863b2ba6a7affc31c4d2f1b 100644 (file)
@@ -29,3 +29,4 @@ test01()
 // { dg-error "non-const, non-volatile value_type" "" { target *-*-* } 0 }
 // { dg-error "comparison object must be invocable" "" { target *-*-* } 0 }
 // { dg-prune-output "std::allocator<.* has no member named " }
+// { dg-prune-output "must have the same value_type as its allocator" }
index 9cd728d9bc6e129bac3db639044b896eaa4d18d6..bf0f4210594b43c3ef562b1a9e913effcf3ad497 100644 (file)
@@ -29,3 +29,4 @@ test01()
 // { dg-error "non-const, non-volatile value_type" "" { target *-*-* } 0 }
 // { dg-error "comparison object must be invocable" "" { target *-*-* } 0 }
 // { dg-prune-output "std::allocator<.* has no member named " }
+// { dg-prune-output "must have the same value_type as its allocator" }
index a06c302ad6bafdf299bad7f19a0dfbe0cfa94abe..fb2395017111b736de45214859b94d6da3b53dd8 100644 (file)
@@ -31,3 +31,4 @@ test01()
 // { dg-error "hash function must be invocable" "" { target *-*-* } 0 }
 // { dg-error "key equality predicate must be invocable" "" { target *-*-* } 0 }
 // { dg-prune-output "use of deleted function" }
+// { dg-prune-output "must have the same value_type as its allocator" }
index 61f79f917e04cb117ac4ab89d9292bd126fd8435..5311378820669038ea7428b4d418c39e8611f58e 100644 (file)
@@ -31,3 +31,4 @@ test01()
 // { dg-error "hash function must be invocable" "" { target *-*-* } 0 }
 // { dg-error "key equality predicate must be invocable" "" { target *-*-* } 0 }
 // { dg-prune-output "use of deleted function" }
+// { dg-prune-output "must have the same value_type as its allocator" }
index 95613c53534603fe88faf082b5cfddcd9a5428b1..620170d0a150e81577cc5a761eea3c8ef95eb6f3 100644 (file)
@@ -27,3 +27,4 @@ test01()
 
 // { dg-error "non-const, non-volatile value_type" "" { target *-*-* } 0 }
 // { dg-prune-output "std::allocator<.* has no member named " }
+// { dg-prune-output "must have the same value_type as its allocator" }