From f8356d52f287fd658471e91ce0089d89f6f17472 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 9 May 2015 00:50:30 -0400 Subject: [PATCH] std_c++0x_neg.cc: Add -std=c++98. * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98. * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc: Likewise. * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated. * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Adjust expected errors. * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc: Likewise. * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc: Likewise. * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc: Likewise. * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated. * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated. * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated. * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated. * testsuite/ext/array_allocator/check_allocate_max_size.cc: Add -Wno-deprecated. * testsuite/ext/array_allocator/check_deallocate_null.cc: Add -Wno-deprecated. * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated. * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated. * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error. * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc: Add -std=c++98. * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc: Add -std=c++98. * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Add -std=c++98. * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Add -std=c++98 -fno-show-column. * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc: Add -std=c++98. * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc: Add -std=c++98. * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98. * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98. From-SVN: r222965 --- libstdc++-v3/ChangeLog | 42 +++++++++++++++++++ .../headers/system_error/std_c++0x_neg.cc | 1 + libstdc++-v3/testsuite/20_util/auto_ptr/1.cc | 2 + libstdc++-v3/testsuite/20_util/auto_ptr/2.cc | 2 + libstdc++-v3/testsuite/20_util/auto_ptr/3.cc | 2 + .../testsuite/20_util/auto_ptr/3946.cc | 2 + libstdc++-v3/testsuite/20_util/auto_ptr/4.cc | 2 + libstdc++-v3/testsuite/20_util/auto_ptr/5.cc | 2 + libstdc++-v3/testsuite/20_util/auto_ptr/6.cc | 2 + libstdc++-v3/testsuite/20_util/auto_ptr/7.cc | 2 + .../testsuite/20_util/auto_ptr/assign_neg.cc | 2 + .../requirements/explicit_instantiation/1.cc | 2 + .../20_util/headers/functional/synopsis.cc | 2 + .../deque/requirements/dr438/assign_neg.cc | 4 +- .../requirements/dr438/constructor_1_neg.cc | 4 +- .../requirements/dr438/constructor_2_neg.cc | 4 +- .../deque/requirements/dr438/insert_neg.cc | 4 +- .../list/requirements/dr438/assign_neg.cc | 4 +- .../requirements/dr438/constructor_1_neg.cc | 4 +- .../requirements/dr438/constructor_2_neg.cc | 4 +- .../list/requirements/dr438/insert_neg.cc | 4 +- .../vector/requirements/dr438/assign_neg.cc | 4 +- .../requirements/dr438/constructor_1_neg.cc | 4 +- .../requirements/dr438/constructor_2_neg.cc | 4 +- .../vector/requirements/dr438/insert_neg.cc | 4 +- .../testsuite/ext/array_allocator/1.cc | 1 + .../testsuite/ext/array_allocator/2.cc | 1 + .../testsuite/ext/array_allocator/26875.cc | 2 + .../testsuite/ext/array_allocator/3.cc | 1 + .../check_allocate_max_size.cc | 2 + .../array_allocator/check_deallocate_null.cc | 2 + .../ext/array_allocator/check_delete.cc | 2 + .../ext/array_allocator/check_new.cc | 2 + .../ext/profile/mutex_extensions_neg.cc | 3 ++ .../shared_ptr/assign/auto_ptr.cc | 2 + .../shared_ptr/assign/auto_ptr_neg.cc | 2 + .../shared_ptr/assign/auto_ptr_rvalue_neg.cc | 2 + .../shared_ptr/cons/43820_neg.cc | 2 + .../shared_ptr/cons/auto_ptr.cc | 2 + .../shared_ptr/cons/auto_ptr_neg.cc | 2 + .../tr1/6_containers/utility/pair.cc | 2 + .../tr1/8_c_compatibility/cmath/pow_cmath.cc | 2 + 42 files changed, 121 insertions(+), 24 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 81c717e2f25..915df753ef0 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,47 @@ 2015-05-08 Jason Merrill + * testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98. + * testsuite/20_util/auto_ptr/1.cc: Add -std=c++98. + * testsuite/20_util/auto_ptr/2.cc: Add -std=c++98. + * testsuite/20_util/auto_ptr/3.cc: Add -std=c++98. + * testsuite/20_util/auto_ptr/4.cc: Add -std=c++98. + * testsuite/20_util/auto_ptr/5.cc: Add -std=c++98. + * testsuite/20_util/auto_ptr/6.cc: Add -std=c++98. + * testsuite/20_util/auto_ptr/7.cc: Add -std=c++98. + * testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98. + * testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98. + * testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc: Likewise. + * testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated. + * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Adjust expected errors. + * testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc: Likewise. + * testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc: Likewise. + * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc: Likewise. + * testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc: Likewise. + * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise. + * testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated. + * testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated. + * testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated. + * testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated. + * testsuite/ext/array_allocator/check_allocate_max_size.cc: Add -Wno-deprecated. + * testsuite/ext/array_allocator/check_deallocate_null.cc: Add -Wno-deprecated. + * testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated. + * testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated. + * testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error. + * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc: Add -std=c++98. + * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc: Add -std=c++98. + * testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Add -std=c++98. + * testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Add -std=c++98 -fno-show-column. + * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc: Add -std=c++98. + * testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc: Add -std=c++98. + * testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98. + * testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98. + * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98. * src/c++98/Makefile.in: Regenerate. * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98. diff --git a/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc b/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc index e7982ce9ef9..082a505ec99 100644 --- a/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc +++ b/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc @@ -1,4 +1,5 @@ // { dg-do compile } +// { dg-options "-std=gnu++98" } // Copyright (C) 2007-2015 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/1.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/1.cc index df52d10fe01..eb88a2dfe87 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/1.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/1.cc @@ -17,6 +17,8 @@ // 20.4.5 Template class auto_ptr [lib.auto.ptr] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/2.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/2.cc index fb478e427cc..521bf79e771 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/2.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/2.cc @@ -17,6 +17,8 @@ // 20.4.5 Template class auto_ptr [lib.auto.ptr] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/3.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/3.cc index 25c5602d057..a37e2201044 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/3.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/3.cc @@ -17,6 +17,8 @@ // 20.4.5 Template class auto_ptr [lib.auto.ptr] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/3946.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/3946.cc index a5ab1fcc75c..0072a6bfc15 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/3946.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/3946.cc @@ -17,6 +17,8 @@ // 20.4.5 Template class auto_ptr [lib.auto.ptr] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/4.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/4.cc index 88d0cac2b8c..5b4469c2568 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/4.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/4.cc @@ -17,6 +17,8 @@ // 20.4.5 Template class auto_ptr [lib.auto.ptr] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/5.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/5.cc index a27a6ef899c..45a18052575 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/5.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/5.cc @@ -17,6 +17,8 @@ // 20.4.5 Template class auto_ptr [lib.auto.ptr] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/6.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/6.cc index 68379b12397..6990aaa9112 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/6.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/6.cc @@ -17,6 +17,8 @@ // 20.4.5 Template class auto_ptr [lib.auto.ptr] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/7.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/7.cc index 1fff811451f..ac19a022289 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/7.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/7.cc @@ -17,6 +17,8 @@ // 20.4.5 Template class auto_ptr [lib.auto.ptr] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/assign_neg.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/assign_neg.cc index 5d62c62b70e..fca8c6fc9dd 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/assign_neg.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/assign_neg.cc @@ -19,6 +19,8 @@ // 20.4.5 Template class auto_ptr negative tests [lib.auto.ptr] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc b/libstdc++-v3/testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc index b99426299c6..e9e5775d59d 100644 --- a/libstdc++-v3/testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc +++ b/libstdc++-v3/testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc @@ -20,6 +20,8 @@ // This file tests explicit instantiation of library containers. +// { dg-options "-std=c++98" } + #include template class std::auto_ptr; diff --git a/libstdc++-v3/testsuite/20_util/headers/functional/synopsis.cc b/libstdc++-v3/testsuite/20_util/headers/functional/synopsis.cc index 7e76ccbc20c..03d37a639ab 100644 --- a/libstdc++-v3/testsuite/20_util/headers/functional/synopsis.cc +++ b/libstdc++-v3/testsuite/20_util/headers/functional/synopsis.cc @@ -17,6 +17,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-Wno-deprecated" } + #include namespace std { diff --git a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/assign_neg.cc b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/assign_neg.cc index 8604250696c..d9bc2ace552 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/assign_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/assign_neg.cc @@ -18,7 +18,7 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1881 } +// { dg-prune-output 1881 } #include @@ -30,5 +30,5 @@ struct A void f() { std::deque d; - d.assign(10, 1); + d.assign(10, 1); // { dg-error "no match|here" } } diff --git a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc index e8fadaabf4b..b4eb75edde1 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc @@ -18,11 +18,11 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1814 } +// { dg-prune-output 1814 } #include void f() { - std::deque > d(10, 1); + std::deque > d(10, 1); // { dg-error "here|no match" } } diff --git a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc index 1444343dfaa..90ce50a1fee 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc @@ -18,12 +18,12 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1814 } +// { dg-prune-output 1814 } #include #include void f() { - std::deque > > d('a', 'b'); + std::deque > > d('a', 'b'); // { dg-error "here|no match" } } diff --git a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/insert_neg.cc b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/insert_neg.cc index 0310cf24744..5ff969580a9 100644 --- a/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/insert_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/deque/requirements/dr438/insert_neg.cc @@ -18,7 +18,7 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1965 } +// { dg-prune-output 1965 } #include @@ -30,5 +30,5 @@ struct A void f() { std::deque d; - d.insert(d.begin(), 10, 1); + d.insert(d.begin(), 10, 1); // { dg-error "here|no match" } } diff --git a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/assign_neg.cc b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/assign_neg.cc index 4bb80d234ed..0a60dd78e6d 100644 --- a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/assign_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/assign_neg.cc @@ -18,7 +18,7 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1730 } +// { dg-prune-output 1730 } #include @@ -31,5 +31,5 @@ void f() { typedef std::list list_type; list_type l; - l.assign(10, 1); + l.assign(10, 1); // { dg-error "here|no match" } } diff --git a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc index 5e848a7b585..8de8b1ad0ad 100644 --- a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc @@ -18,12 +18,12 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1682 } +// { dg-prune-output 1682 } #include void f() { typedef std::list > list_type; - list_type l(10, 1); + list_type l(10, 1); // { dg-error "here|no match" } } diff --git a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc index c2e0d80e73b..970a10b3593 100644 --- a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc @@ -18,7 +18,7 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1682 } +// { dg-prune-output 1682 } #include #include @@ -26,5 +26,5 @@ void f() { typedef std::list > > list_type; - list_type l('a', 'b'); + list_type l('a', 'b'); // { dg-error "here|no match" } } diff --git a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/insert_neg.cc b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/insert_neg.cc index a2db0783808..c927735ff8d 100644 --- a/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/insert_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/list/requirements/dr438/insert_neg.cc @@ -18,7 +18,7 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1682 } +// { dg-prune-output 1682 } #include @@ -31,5 +31,5 @@ void f() { typedef std::list list_type; list_type l; - l.insert(l.begin(), 10, 1); + l.insert(l.begin(), 10, 1); // { dg-error "here|no match" } } diff --git a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc index 61daa28c24b..ce8f525c2e6 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/assign_neg.cc @@ -18,7 +18,7 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1326 } +// { dg-prune-output 1326 } #include @@ -30,5 +30,5 @@ struct A void f() { std::vector v; - v.assign(10, 1); + v.assign(10, 1); // { dg-error "here|no match" } } diff --git a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc index 14d14940ae8..4f0d365d247 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc @@ -18,11 +18,11 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1252 } +// { dg-prune-output 1252 } #include void f() { - std::vector > v(10, 1); + std::vector > v(10, 1); // { dg-error "here|no match" } } diff --git a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc index 6d3517fa9e3..34ffaecfc0b 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc @@ -18,12 +18,12 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1252 } +// { dg-prune-output 1252 } #include #include void f() { - std::vector > > v('a', 'b'); + std::vector > > v('a', 'b'); // { dg-error "here|no match" } } diff --git a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc index 4fcff549a39..6f611bf4cb1 100644 --- a/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/vector/requirements/dr438/insert_neg.cc @@ -18,7 +18,7 @@ // . // { dg-do compile } -// { dg-error "no matching" "" { target *-*-* } 1367 } +// { dg-prune-output 1367 } #include @@ -30,5 +30,5 @@ struct A void f() { std::vector v; - v.insert(v.begin(), 10, 1); + v.insert(v.begin(), 10, 1); // { dg-error "here|no match" } } diff --git a/libstdc++-v3/testsuite/ext/array_allocator/1.cc b/libstdc++-v3/testsuite/ext/array_allocator/1.cc index f8592e0e93a..9ce7fef47ec 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/1.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/1.cc @@ -15,6 +15,7 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-Wno-deprecated" } #include #include diff --git a/libstdc++-v3/testsuite/ext/array_allocator/2.cc b/libstdc++-v3/testsuite/ext/array_allocator/2.cc index a012c092fef..de9afe72243 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/2.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/2.cc @@ -15,6 +15,7 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-Wno-deprecated" } #include #include diff --git a/libstdc++-v3/testsuite/ext/array_allocator/26875.cc b/libstdc++-v3/testsuite/ext/array_allocator/26875.cc index 7a9b2c91ff0..caa795d0c09 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/26875.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/26875.cc @@ -16,6 +16,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-Wno-deprecated" } + #include // libstdc++/26875 diff --git a/libstdc++-v3/testsuite/ext/array_allocator/3.cc b/libstdc++-v3/testsuite/ext/array_allocator/3.cc index 380c473f679..d8d57272af1 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/3.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/3.cc @@ -15,6 +15,7 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-Wno-deprecated" } #include #include diff --git a/libstdc++-v3/testsuite/ext/array_allocator/check_allocate_max_size.cc b/libstdc++-v3/testsuite/ext/array_allocator/check_allocate_max_size.cc index aa26cb3fc2e..abb326353d0 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/check_allocate_max_size.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/check_allocate_max_size.cc @@ -16,6 +16,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-Wno-deprecated" } + // 20.4.1.1 allocator members #include diff --git a/libstdc++-v3/testsuite/ext/array_allocator/check_deallocate_null.cc b/libstdc++-v3/testsuite/ext/array_allocator/check_deallocate_null.cc index 2ee8f987f58..ae0963ea8f5 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/check_deallocate_null.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/check_deallocate_null.cc @@ -16,6 +16,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-Wno-deprecated" } + // 20.4.1.1 allocator members #include diff --git a/libstdc++-v3/testsuite/ext/array_allocator/check_delete.cc b/libstdc++-v3/testsuite/ext/array_allocator/check_delete.cc index a7cdeb61326..216f916469b 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/check_delete.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/check_delete.cc @@ -17,6 +17,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-Wno-deprecated" } + // 20.4.1.1 allocator members #include diff --git a/libstdc++-v3/testsuite/ext/array_allocator/check_new.cc b/libstdc++-v3/testsuite/ext/array_allocator/check_new.cc index d0689c2c057..eedc6fada97 100644 --- a/libstdc++-v3/testsuite/ext/array_allocator/check_new.cc +++ b/libstdc++-v3/testsuite/ext/array_allocator/check_new.cc @@ -17,6 +17,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-Wno-deprecated" } + // 20.4.1.1 allocator members #include diff --git a/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc b/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc index dd19f1406b1..78365e74cca 100644 --- a/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc +++ b/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc @@ -26,3 +26,6 @@ #include // { dg-error "multiple inlined namespaces" "" { target *-*-* } 322 } + +// "template argument 1 is invalid" +// { dg-prune-output "tuple:993" } diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc index e57b6c08021..94344fc9925 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc @@ -17,6 +17,8 @@ // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc index b8b9c5dfeb7..28b4dda2620 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc @@ -19,6 +19,8 @@ // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc index 05f9d893d6d..4b8d0567ab2 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc @@ -19,6 +19,8 @@ // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] +// { dg-options "-std=c++98" } + #include #include diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc index 5ebf03c1982..276c6a53337 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc @@ -17,6 +17,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-std=c++98 -fno-show-column" } + // 2.2.3 Class template shared_ptr [tr.util.smartptr.shared] #include diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc index c95e21dd24a..32c46a8a896 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-std=c++98" } + // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] #include diff --git a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc index 6dbf79622cc..a3e24c792fb 100644 --- a/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc +++ b/libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc @@ -17,6 +17,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-std=c++98" } + // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] #include diff --git a/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc b/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc index cc3873a57ef..da3ec86a031 100644 --- a/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc +++ b/libstdc++-v3/testsuite/tr1/6_containers/utility/pair.cc @@ -17,6 +17,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-std=c++98" } + // tr1 additions to pair #include diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc index d5886c077c5..245a8a5929b 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc @@ -17,6 +17,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-options "-std=c++98" } + #include using std::pow; #include -- 2.30.2