diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2017-06-13 15:07:32 +0200 |
---|---|---|
committer | Yvan Roux <yvan.roux@linaro.org> | 2017-06-13 15:07:32 +0200 |
commit | 491ad610cd69b2a93185dcb02e206a212abc08a7 (patch) | |
tree | 93e33200631f9dcb2efbc15f8c92036c0e4cbec1 /libstdc++-v3/testsuite | |
parent | f121e2071eccc565889dd943b3219fbb9349cfcc (diff) |
Merge branches/gcc-6-branch rev 249140.
Change-Id: I6b73a3960133b7cfc1a59998d7411d8a247b84e0
Diffstat (limited to 'libstdc++-v3/testsuite')
125 files changed, 254 insertions, 106 deletions
diff --git a/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c b/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c index a0fe0d7c806..2cfc04b42c9 100644 --- a/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c +++ b/libstdc++-v3/testsuite/18_support/bad_exception/23591_thread-1.c @@ -1,4 +1,5 @@ // { dg-require-sharedlib "" } +// { dg-skip-if "invalid options for C" { *-*-* } { "-std=c++??" "-std=gnu++??" } } // { dg-options "-g -O2 -pthread -ldl -x c -fvtable-verify=none" { target *-*-linux* *-*-gnu* *-*-solaris2.1[2-9]* } } // Copyright (C) 2005-2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc b/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc index 529b9508353..b8e6e2458c8 100644 --- a/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc +++ b/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc @@ -83,7 +83,9 @@ void test01() TEST_ERRC(no_message_available); #endif +#ifdef _GLIBCXX_HAVE_ENOMSG TEST_ERRC(no_message); +#endif TEST_ERRC(no_protocol_option); TEST_ERRC(no_space_on_device); diff --git a/libstdc++-v3/testsuite/20_util/reference_wrapper/80504.cc b/libstdc++-v3/testsuite/20_util/reference_wrapper/80504.cc new file mode 100644 index 00000000000..727a560cd17 --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/reference_wrapper/80504.cc @@ -0,0 +1,34 @@ +// Copyright (C) 2017 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING3. If not see +// <http://www.gnu.org/licenses/>. + +// { dg-do compile { target c++11 } } + +#include <functional> + +namespace X { + struct Y { }; + template<typename T> void ref(T) { } + template<typename T> void cref(T) { } +} + +int main() +{ + X::Y i; + std::reference_wrapper<X::Y> r(i); + ref(r); + cref(r); +} diff --git a/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke.cc b/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke.cc index fe4d0c7c06b..24aa6d1ed9a 100644 --- a/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke.cc +++ b/libstdc++-v3/testsuite/20_util/reference_wrapper/invoke.cc @@ -75,8 +75,7 @@ void test01() int (::X::* p_foo_c)(float) const = &::X::foo_c; int (::X::* p_foo_v)(float) volatile = &::X::foo_v; int (::X::* p_foo_cv)(float) const volatile = &::X::foo_cv; - int (::X::* p_foo_varargs)(float, ...) __attribute__((unused)) - = &::X::foo_varargs; + int (::X::* p_foo_varargs)(float, ...) = &::X::foo_varargs; int ::X::* p_bar = &::X::bar; const float pi = 3.14; @@ -98,10 +97,10 @@ void test01() VERIFY(ref(p_foo_v)(xp, pi) == 3); VERIFY(ref(p_foo_cv)(x, pi) == 3); VERIFY(ref(p_foo_cv)(xp, pi) == 3); - // VERIFY(ref(p_foo_varargs)(x, pi) == 3); - // VERIFY(ref(p_foo_varargs)(xp, pi, 1, 1) == 3); - // VERIFY(ref(p_foo_varargs)(x, pi, 1, 1) == 3); - // VERIFY(ref(p_foo_varargs)(xp, pi) == 3); + VERIFY(ref(p_foo_varargs)(x, pi) == 3); + VERIFY(ref(p_foo_varargs)(xp, pi, 1, 1) == 3); + VERIFY(ref(p_foo_varargs)(x, pi, 1, 1) == 3); + VERIFY(ref(p_foo_varargs)(xp, pi) == 3); // Member data pointers VERIFY(ref(p_bar)(x) == 17); diff --git a/libstdc++-v3/testsuite/20_util/tuple/67844.cc b/libstdc++-v3/testsuite/20_util/tuple/67844.cc index 0416a51a202..d515b7bebb3 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/67844.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/67844.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // Copyright (C) 2015-2016 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc index fe9bea678a4..a9bf9542dbf 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. +// { dg-do compile { target c++11 } } + #include <tuple> using namespace std; @@ -27,4 +29,3 @@ int main() { tuple<Something> t1; tuple<Something> t2 = t1; } - diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc index 39a4f73c1d4..d3162ecf561 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc @@ -1,3 +1,5 @@ +// { dg-do run { target c++11 } } + // Copyright (C) 2015-2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free 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 7851243df50..49a05e607f2 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 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1879 } +// { dg-prune-output "no matching function .*_M_fill_assign" } #include <deque> 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 2debd58ec3b..7b52fe2e325 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,7 +18,7 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1812 } +// { dg-prune-output "no matching function .*_M_fill_initialize" } #include <deque> 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 5aa86269c50..02a2d3b8a72 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,7 +18,7 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1812 } +// { dg-prune-output "no matching function .*_M_fill_initialize" } #include <deque> #include <utility> 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 5742198bb98..90c004062f7 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 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1963 } +// { dg-prune-output "no matching function .*_M_fill_insert" } #include <deque> diff --git a/libstdc++-v3/testsuite/23_containers/list/operations/78389.cc b/libstdc++-v3/testsuite/23_containers/list/operations/78389.cc index ac36f9c94d8..a3713a55569 100644 --- a/libstdc++-v3/testsuite/23_containers/list/operations/78389.cc +++ b/libstdc++-v3/testsuite/23_containers/list/operations/78389.cc @@ -19,20 +19,20 @@ // 23.2.2.4 list operations [lib.list.ops] -#include <testsuite_hooks.h> - #include <list> +#include <testsuite_hooks.h> struct ThrowingComparator { - unsigned int throw_after = 0; - unsigned int count = 0; - bool operator()(int, int) { - if (++count >= throw_after) { - throw 666; - } - return true; + ThrowingComparator(unsigned n) : throw_after(n), count(0) { } + unsigned int throw_after; + unsigned int count; + bool operator()(int, int) { + if (++count >= throw_after) { + throw 666; } + return false; + } }; struct X @@ -48,7 +48,7 @@ bool operator<(const X&, const X&) { if (++count_X >= throw_after_X) { throw 666; } - return true; + return false; } 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 b956db648fe..90e3c07e687 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 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1740 } +// { dg-prune-output "no matching function .*_M_fill_assign" } #include <list> 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 3400695b9b2..32815f446ec 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,7 +18,7 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1692 } +// { dg-prune-output "no matching function .*_M_fill_initialize" } #include <list> 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 313c54a91e3..769d6156d8d 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 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1682 } +// { dg-prune-output "no matching function .*_M_fill_initialize" } #include <list> #include <utility> 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 75b33f28f0a..fff543e50ae 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 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1692 } +// { dg-prune-output "no matching function .*_M_fill_initialize" } #include <list> 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 898431e738e..50e665d17d0 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 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1325 } +// { dg-prune-output "no matching function .*_M_fill_assign" } #include <vector> 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 3e27d5290cc..c8521b773c8 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,7 +18,7 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1251 } +// { dg-prune-output "no matching function .*_M_fill_initialize" } #include <vector> 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 680a84b16f0..bc75eb4ae3f 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,7 +18,7 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1251 } +// { dg-prune-output "no matching function .*_M_fill_initialize" } #include <vector> #include <utility> 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 9c9dd600ac0..c73f861be5d 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 @@ // <http://www.gnu.org/licenses/>. // { dg-do compile } -// { dg-prune-output 1366 } +// { dg-prune-output "no matching function .*_M_fill_insert" } #include <vector> diff --git a/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/irreflexive.cc b/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/irreflexive.cc index f22452ecc8a..1554df0d97f 100644 --- a/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/irreflexive.cc +++ b/libstdc++-v3/testsuite/25_algorithms/lower_bound/debug/irreflexive.cc @@ -42,6 +42,6 @@ struct A_int_comparer void test01() { - A as[] { 0, 1, 2, 3 }; + A as[] = { 0, 1, 2, 3 }; std::lower_bound(as, as + 4, 1, A_int_comparer()); } diff --git a/libstdc++-v3/testsuite/27_io/ios_base/types/fmtflags/case_label.cc b/libstdc++-v3/testsuite/27_io/ios_base/types/fmtflags/case_label.cc index d786e103438..c0e94877aac 100644 --- a/libstdc++-v3/testsuite/27_io/ios_base/types/fmtflags/case_label.cc +++ b/libstdc++-v3/testsuite/27_io/ios_base/types/fmtflags/case_label.cc @@ -1,5 +1,5 @@ -// { dg-do compile } -// { dg-options "-Wall" { target *-*-* } } +// { dg-do compile { target c++11 } } +// { dg-options "-Wall" } // -*- C++ -*- // Copyright (C) 2004-2016 Free Software Foundation, Inc. @@ -75,6 +75,7 @@ case_labels(bitmask_type b) case ~__INT_MAX__: break; } - static_assert( sizeof(std::underlying_type_t<bitmask_type>) == sizeof(int), + using underlying_type = std::underlying_type<bitmask_type>::type; + static_assert( sizeof(underlying_type) == sizeof(int), "underlying type has same range of values as int"); } diff --git a/libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc b/libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc index 7d777b89c67..5ca9f5f8759 100644 --- a/libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc +++ b/libstdc++-v3/testsuite/27_io/ios_base/types/iostate/case_label.cc @@ -1,5 +1,5 @@ -// { dg-do compile } -// { dg-options "-Wall" { target *-*-* } } +// { dg-do compile { target c++11 } } +// { dg-options "-Wall" } // -*- C++ -*- // Copyright (C) 2004-2016 Free Software Foundation, Inc. @@ -47,6 +47,7 @@ case_labels(bitmask_type b) case ~__INT_MAX__: break; } - static_assert( sizeof(std::underlying_type_t<bitmask_type>) == sizeof(int), + using underlying_type = std::underlying_type<bitmask_type>::type; + static_assert( sizeof(underlying_type) == sizeof(int), "underlying type has same range of values as int"); } diff --git a/libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc b/libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc index bb9e96e260c..14a4984105b 100644 --- a/libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc +++ b/libstdc++-v3/testsuite/27_io/ios_base/types/openmode/case_label.cc @@ -1,5 +1,5 @@ -// { dg-do compile } -// { dg-options "-Wall" { target *-*-* } } +// { dg-do compile { target c++11 } } +// { dg-options "-Wall" } // -*- C++ -*- // Copyright (C) 2004-2016 Free Software Foundation, Inc. @@ -51,6 +51,7 @@ case_labels(bitmask_type b) case ~__INT_MAX__: break; } - static_assert( sizeof(std::underlying_type_t<bitmask_type>) == sizeof(int), + using underlying_type = std::underlying_type<bitmask_type>::type; + static_assert( sizeof(underlying_type) == sizeof(int), "underlying type has same range of values as int"); } diff --git a/libstdc++-v3/testsuite/27_io/rvalue_streams.cc b/libstdc++-v3/testsuite/27_io/rvalue_streams.cc index eba5bc35961..bff6e5ee3dc 100644 --- a/libstdc++-v3/testsuite/27_io/rvalue_streams.cc +++ b/libstdc++-v3/testsuite/27_io/rvalue_streams.cc @@ -15,7 +15,7 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-do run } +// { dg-do run { target c++11 } } #include <sstream> #include <string> diff --git a/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/iter.cc b/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/iter.cc new file mode 100644 index 00000000000..7776c5fd557 --- /dev/null +++ b/libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/iter.cc @@ -0,0 +1,30 @@ +// Copyright (C) 2017 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING3. If not see +// <http://www.gnu.org/licenses/>. + +// { dg-do compile { target c++11 } } + +#include <regex> +#include <testsuite_iterators.h> + +void +test01() +{ + char s[] = ""; + __gnu_test::test_container<char, __gnu_test::forward_iterator_wrapper> c(s); + std::regex r1(c.begin(), c.end()); + std::regex r2(c.begin(), c.end(), std::regex_constants::grep); +} diff --git a/libstdc++-v3/testsuite/28_regex/regression.cc b/libstdc++-v3/testsuite/28_regex/regression.cc index c9a3402011e..e5aec9ea05d 100644 --- a/libstdc++-v3/testsuite/28_regex/regression.cc +++ b/libstdc++-v3/testsuite/28_regex/regression.cc @@ -48,11 +48,33 @@ test02() VERIFY(std::regex_search("/abcd", rx)); } +// PR libstdc++/78236 +void +test06() +{ + char const s[] = "afoo"; + std::basic_regex<char> r("(f+)"); + { + std::cregex_iterator i(s, s+sizeof(s), r); + std::cregex_iterator j(s, s+sizeof(s), r); + VERIFY(i == j); + } + // The iterator manipulation code must be repeated in the same scope + // to expose the undefined read during the execution of the == + // operator (stack location reuse) + { + std::cregex_iterator i(s, s+sizeof(s), r); + std::cregex_iterator j; + VERIFY(!(i == j)); + } +} + int main() { test01(); test02(); + test06(); return 0; } diff --git a/libstdc++-v3/testsuite/abi/header_cxxabi.c b/libstdc++-v3/testsuite/abi/header_cxxabi.c index b424d8f8a99..3b1a7dceda2 100644 --- a/libstdc++-v3/testsuite/abi/header_cxxabi.c +++ b/libstdc++-v3/testsuite/abi/header_cxxabi.c @@ -1,4 +1,5 @@ // { dg-do compile } +// { dg-skip-if "invalid options for C" { *-*-* } { "-std=c++??" "-std=gnu++??" } } // { dg-options "-x c" } // Copyright (C) 2006-2016 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc b/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc index 09d9af0ba8c..3fc42a464ef 100644 --- a/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc +++ b/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc @@ -1,4 +1,4 @@ -// { dg-options "-std=gnu++14" } +// { dg-do run { target c++14 } } // Copyright (C) 2016 Free Software Foundation, Inc. // @@ -18,7 +18,6 @@ // <http://www.gnu.org/licenses/>. #include <experimental/memory_resource> -#include <bits/uses_allocator.h> #include <testsuite_hooks.h> using std::experimental::pmr::memory_resource; diff --git a/libstdc++-v3/testsuite/experimental/type_erased_allocator/2.cc b/libstdc++-v3/testsuite/experimental/type_erased_allocator/2.cc index fb927dc27af..8f7d0b5d24b 100644 --- a/libstdc++-v3/testsuite/experimental/type_erased_allocator/2.cc +++ b/libstdc++-v3/testsuite/experimental/type_erased_allocator/2.cc @@ -20,7 +20,6 @@ #include <memory> #include <experimental/memory_resource> #include <experimental/utility> -#include <bits/uses_allocator.h> #include <testsuite_hooks.h> #include <testsuite_allocator.h> diff --git a/libstdc++-v3/testsuite/experimental/type_erased_allocator/uses_allocator.cc b/libstdc++-v3/testsuite/experimental/type_erased_allocator/uses_allocator.cc index fc8acf16dcd..d3d53ee566a 100644 --- a/libstdc++-v3/testsuite/experimental/type_erased_allocator/uses_allocator.cc +++ b/libstdc++-v3/testsuite/experimental/type_erased_allocator/uses_allocator.cc @@ -1,7 +1,25 @@ -#include <bits/uses_allocator.h> +// Copyright (C) 2015-2016 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. + +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING3. If not see +// <http://www.gnu.org/licenses/>. + +// { dg-do compile { target c++14 } } + #include <vector> -#include <experimental/utility> #include <memory> +#include <experimental/utility> using std::vector; using std::allocator; @@ -11,12 +29,5 @@ struct A { using allocator_type = std::experimental::erased_type; }; -void test01() { - static_assert(uses_allocator<vector<int>, allocator<int>>()); - static_assert(uses_allocator<A, allocator<A>>()); -} - -int main() { - test01(); - return 0; -} +static_assert(uses_allocator<vector<int>, allocator<int>>(), ""); +static_assert(uses_allocator<A, allocator<A>>(), ""); diff --git a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc index 7119ce74f74..d6108d5fd4b 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_nan.cc @@ -1,6 +1,7 @@ // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } +// { dg-do run { target c++11 } } // Copyright (C) 2016 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc index 276efd6db74..d863ae8df93 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/check_value.cc @@ -1,4 +1,5 @@ // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } +// { dg-do run { target c++11 } } // // Copyright (C) 2016 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc index e811c5c359b..36f9a2cc4a9 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/conf_hyperg/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc index ba381ca3803..8806a3c2b1d 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_nan.cc @@ -1,6 +1,7 @@ // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } +// { dg-do run { target c++11 } } // Copyright (C) 2016 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc index d87fcef03ee..5a7a4a6f670 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/check_value.cc @@ -1,5 +1,6 @@ // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__ -ffp-contract=off" } // { dg-additional-options "-ffloat-store" { target { m68*-*-* || ia32 } } } +// { dg-do run { target c++11 } } // Copyright (C) 2016 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc b/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc index bf76d7861cc..3748f6ebd3e 100644 --- a/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc +++ b/libstdc++-v3/testsuite/ext/special_functions/hyperg/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/libstdc++-prettyprinters/59161.cc b/libstdc++-v3/testsuite/libstdc++-prettyprinters/59161.cc index d8fef27bbb5..a2d7f967635 100644 --- a/libstdc++-v3/testsuite/libstdc++-prettyprinters/59161.cc +++ b/libstdc++-v3/testsuite/libstdc++-prettyprinters/59161.cc @@ -59,8 +59,7 @@ int main() std::set<C>::iterator siter = s.begin(); // { dg-final { regexp-test siter {ref = @0x.*} } } - std::vector<C> v; - v.push_back(c); + std::vector<C> v(1, c); std::vector<C>::iterator viter = v.begin(); // { dg-final { regexp-test viter {ref = @0x.*} } } diff --git a/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/check_nan.cc b/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/check_nan.cc index c415ce16596..60c6871811d 100644 --- a/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/check_value.cc b/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/check_value.cc index 89f317dfaac..d6a4f55fb7c 100644 --- a/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile.cc b/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile.cc index 2214c62fd09..c2d32b79387 100644 --- a/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile_2.cc b/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile_2.cc index 71af880c60d..d6a0ad1727d 100644 --- a/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/01_assoc_laguerre/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_nan.cc b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_nan.cc index 63a8de3c49d..ec916ff8cfe 100644 --- a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc index 0c60ac64a1b..9028872c87e 100644 --- a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__ -ffp-contract=off" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile.cc b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile.cc index 5c7e6510a49..e088030370d 100644 --- a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile_2.cc b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile_2.cc index 9641f3aab5a..06b9a9a7c83 100644 --- a/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/02_assoc_legendre/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/03_beta/check_nan.cc b/libstdc++-v3/testsuite/special_functions/03_beta/check_nan.cc index 3dc9f33a898..07ea9fa8bd8 100644 --- a/libstdc++-v3/testsuite/special_functions/03_beta/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/03_beta/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/03_beta/check_value.cc b/libstdc++-v3/testsuite/special_functions/03_beta/check_value.cc index 9cc0b3528e8..93348810f79 100644 --- a/libstdc++-v3/testsuite/special_functions/03_beta/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/03_beta/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/03_beta/compile.cc b/libstdc++-v3/testsuite/special_functions/03_beta/compile.cc index eb5e4d02fc3..25e5f063ea1 100644 --- a/libstdc++-v3/testsuite/special_functions/03_beta/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/03_beta/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/03_beta/compile_2.cc b/libstdc++-v3/testsuite/special_functions/03_beta/compile_2.cc index a6eb6acad1a..76ee9fcdbed 100644 --- a/libstdc++-v3/testsuite/special_functions/03_beta/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/03_beta/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/check_nan.cc b/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/check_nan.cc index 33e63c5c400..7d0eb0a2f81 100644 --- a/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/check_value.cc b/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/check_value.cc index b2bf414bf0f..f9e99528d44 100644 --- a/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile.cc b/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile.cc index cd95b6b9a97..87987f56bd4 100644 --- a/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile_2.cc b/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile_2.cc index de4ef4b95b5..b3d6bfd1579 100644 --- a/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/04_comp_ellint_1/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/check_nan.cc b/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/check_nan.cc index e4a912f1b05..72e1d107a69 100644 --- a/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/check_value.cc b/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/check_value.cc index 649b8e55767..eda301254d0 100644 --- a/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile.cc b/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile.cc index a00a031c5cb..9fe4058f4d6 100644 --- a/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile_2.cc b/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile_2.cc index 4707bab5e9f..6d198ff14e3 100644 --- a/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/05_comp_ellint_2/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/check_nan.cc b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/check_nan.cc index 0bc697cf554..62be47da3bd 100644 --- a/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/check_value.cc b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/check_value.cc index 694bf42fbd6..6ac640fbe07 100644 --- a/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile.cc b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile.cc index 0bd99a65fd3..e38010e5df7 100644 --- a/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile_2.cc b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile_2.cc index 76da042fd32..e09580ffad5 100644 --- a/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/06_comp_ellint_3/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/check_nan.cc b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/check_nan.cc index 3639d103818..0bf026414c8 100644 --- a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/check_value.cc b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/check_value.cc index 792e0f14cbe..923122118ec 100644 --- a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile.cc b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile.cc index 1d13223f33b..1237398be5f 100644 --- a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile_2.cc b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile_2.cc index 33d3fe3bbb5..39dddc820ae 100644 --- a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/pr56216.cc b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/pr56216.cc index 31ca8944a10..e4a2ef46281 100644 --- a/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/pr56216.cc +++ b/libstdc++-v3/testsuite/special_functions/07_cyl_bessel_i/pr56216.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2015 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/check_nan.cc b/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/check_nan.cc index 481a94c5f1f..719dac93dd5 100644 --- a/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/check_value.cc b/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/check_value.cc index 9a6255b6ce9..1c7c16a85b9 100644 --- a/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile.cc b/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile.cc index 336b54ad4b3..7a55aa07ecb 100644 --- a/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile_2.cc b/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile_2.cc index 8b25dd0a69e..1b2cf615623 100644 --- a/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/08_cyl_bessel_j/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/check_nan.cc b/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/check_nan.cc index 48a77478906..b58a6fb9550 100644 --- a/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/check_value.cc b/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/check_value.cc index 2bd1fa27993..b3607aa7e5b 100644 --- a/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile.cc b/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile.cc index feb42faf75e..db2c447b43d 100644 --- a/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile_2.cc b/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile_2.cc index 4726e67050d..6e50bdbdbb8 100644 --- a/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/09_cyl_bessel_k/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/check_nan.cc b/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/check_nan.cc index bb9d927bd62..487d82e0489 100644 --- a/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/check_value.cc b/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/check_value.cc index 5d320f67e44..03d6b82b5d0 100644 --- a/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile.cc b/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile.cc index c9a49509e90..9a7db53d0eb 100644 --- a/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile_2.cc b/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile_2.cc index 4cf86309a0f..1d1eabd03c0 100644 --- a/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/10_cyl_neumann/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/11_ellint_1/check_nan.cc b/libstdc++-v3/testsuite/special_functions/11_ellint_1/check_nan.cc index e5150faf090..71760204bf9 100644 --- a/libstdc++-v3/testsuite/special_functions/11_ellint_1/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/11_ellint_1/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/11_ellint_1/check_value.cc b/libstdc++-v3/testsuite/special_functions/11_ellint_1/check_value.cc index 10bc509e936..b2040c7c9e7 100644 --- a/libstdc++-v3/testsuite/special_functions/11_ellint_1/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/11_ellint_1/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile.cc b/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile.cc index f4502691f9e..50ad2e15adf 100644 --- a/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc b/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc index 0effa24003c..568d0c64edb 100644 --- a/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/11_ellint_1/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/12_ellint_2/check_nan.cc b/libstdc++-v3/testsuite/special_functions/12_ellint_2/check_nan.cc index 4878577d5ef..9b2eba0738b 100644 --- a/libstdc++-v3/testsuite/special_functions/12_ellint_2/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/12_ellint_2/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/12_ellint_2/check_value.cc b/libstdc++-v3/testsuite/special_functions/12_ellint_2/check_value.cc index 39f3cc63522..b49a4cc61a5 100644 --- a/libstdc++-v3/testsuite/special_functions/12_ellint_2/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/12_ellint_2/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile.cc b/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile.cc index bd3350cd549..71206de5e4e 100644 --- a/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile_2.cc b/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile_2.cc index 098f301fca7..e0f8cb04773 100644 --- a/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/12_ellint_2/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/13_ellint_3/check_nan.cc b/libstdc++-v3/testsuite/special_functions/13_ellint_3/check_nan.cc index a524c37d443..bdec59e5e1b 100644 --- a/libstdc++-v3/testsuite/special_functions/13_ellint_3/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/13_ellint_3/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/13_ellint_3/check_value.cc b/libstdc++-v3/testsuite/special_functions/13_ellint_3/check_value.cc index 4332b5fe30e..d806d4880f0 100644 --- a/libstdc++-v3/testsuite/special_functions/13_ellint_3/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/13_ellint_3/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile.cc b/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile.cc index 02fa02d00f0..0bba92475f8 100644 --- a/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile_2.cc b/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile_2.cc index 6e8f2fd019d..7e4fa00b821 100644 --- a/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/13_ellint_3/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/14_expint/check_nan.cc b/libstdc++-v3/testsuite/special_functions/14_expint/check_nan.cc index dfb96de5107..7c0c5e49e9c 100644 --- a/libstdc++-v3/testsuite/special_functions/14_expint/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/14_expint/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/14_expint/check_value.cc b/libstdc++-v3/testsuite/special_functions/14_expint/check_value.cc index dcd943b0316..5b3f8e0bea6 100644 --- a/libstdc++-v3/testsuite/special_functions/14_expint/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/14_expint/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/14_expint/compile.cc b/libstdc++-v3/testsuite/special_functions/14_expint/compile.cc index 9bbd9536195..facdab9ae18 100644 --- a/libstdc++-v3/testsuite/special_functions/14_expint/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/14_expint/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/14_expint/compile_2.cc b/libstdc++-v3/testsuite/special_functions/14_expint/compile_2.cc index c501bfd2f0b..452b35f4de2 100644 --- a/libstdc++-v3/testsuite/special_functions/14_expint/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/14_expint/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/15_hermite/check_nan.cc b/libstdc++-v3/testsuite/special_functions/15_hermite/check_nan.cc index e6fecef2115..cf5357e2e55 100644 --- a/libstdc++-v3/testsuite/special_functions/15_hermite/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/15_hermite/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/15_hermite/check_value.cc b/libstdc++-v3/testsuite/special_functions/15_hermite/check_value.cc index a6b6a3f7a80..a805549758a 100644 --- a/libstdc++-v3/testsuite/special_functions/15_hermite/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/15_hermite/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/15_hermite/compile.cc b/libstdc++-v3/testsuite/special_functions/15_hermite/compile.cc index 948d907e310..d97d2d4e5bf 100644 --- a/libstdc++-v3/testsuite/special_functions/15_hermite/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/15_hermite/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/15_hermite/compile_2.cc b/libstdc++-v3/testsuite/special_functions/15_hermite/compile_2.cc index f792e1740ab..28a525bde50 100644 --- a/libstdc++-v3/testsuite/special_functions/15_hermite/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/15_hermite/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/16_laguerre/check_nan.cc b/libstdc++-v3/testsuite/special_functions/16_laguerre/check_nan.cc index 9ae721c86de..b73c3db3508 100644 --- a/libstdc++-v3/testsuite/special_functions/16_laguerre/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/16_laguerre/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/16_laguerre/check_value.cc b/libstdc++-v3/testsuite/special_functions/16_laguerre/check_value.cc index 82f48724796..3447ad8e14a 100644 --- a/libstdc++-v3/testsuite/special_functions/16_laguerre/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/16_laguerre/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/16_laguerre/compile.cc b/libstdc++-v3/testsuite/special_functions/16_laguerre/compile.cc index b6636413174..7e248612297 100644 --- a/libstdc++-v3/testsuite/special_functions/16_laguerre/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/16_laguerre/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/16_laguerre/compile_2.cc b/libstdc++-v3/testsuite/special_functions/16_laguerre/compile_2.cc index 70c85ccf498..5bb244531e1 100644 --- a/libstdc++-v3/testsuite/special_functions/16_laguerre/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/16_laguerre/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/17_legendre/check_nan.cc b/libstdc++-v3/testsuite/special_functions/17_legendre/check_nan.cc index 98a9a30741c..26fa341ec8b 100644 --- a/libstdc++-v3/testsuite/special_functions/17_legendre/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/17_legendre/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/17_legendre/check_value.cc b/libstdc++-v3/testsuite/special_functions/17_legendre/check_value.cc index 58944783928..626bdc90635 100644 --- a/libstdc++-v3/testsuite/special_functions/17_legendre/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/17_legendre/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/17_legendre/compile.cc b/libstdc++-v3/testsuite/special_functions/17_legendre/compile.cc index 820293a1ba1..4d60fb91b75 100644 --- a/libstdc++-v3/testsuite/special_functions/17_legendre/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/17_legendre/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/17_legendre/compile_2.cc b/libstdc++-v3/testsuite/special_functions/17_legendre/compile_2.cc index 00458b190cb..ff720fb072a 100644 --- a/libstdc++-v3/testsuite/special_functions/17_legendre/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/17_legendre/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/check_nan.cc b/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/check_nan.cc index 59c67919747..1e49e9312c7 100644 --- a/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/check_value.cc b/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/check_value.cc index f84edd86bb8..7ab4ea0988a 100644 --- a/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile.cc b/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile.cc index e655a1e0a9e..d14dbed976b 100644 --- a/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile_2.cc b/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile_2.cc index e6e3cd989c9..9b7c3d144af 100644 --- a/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/18_riemann_zeta/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/19_sph_bessel/check_nan.cc b/libstdc++-v3/testsuite/special_functions/19_sph_bessel/check_nan.cc index 28a98966bc8..dd99d669e77 100644 --- a/libstdc++-v3/testsuite/special_functions/19_sph_bessel/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/19_sph_bessel/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/19_sph_bessel/check_value.cc b/libstdc++-v3/testsuite/special_functions/19_sph_bessel/check_value.cc index 6ad21af3a4b..38e61626b3d 100644 --- a/libstdc++-v3/testsuite/special_functions/19_sph_bessel/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/19_sph_bessel/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile.cc b/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile.cc index 3ad65a23e99..c7ec036c261 100644 --- a/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile_2.cc b/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile_2.cc index 1fb7c2dedb3..054e44294f8 100644 --- a/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/19_sph_bessel/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/20_sph_legendre/check_nan.cc b/libstdc++-v3/testsuite/special_functions/20_sph_legendre/check_nan.cc index caa7aff820e..8e2558d4118 100644 --- a/libstdc++-v3/testsuite/special_functions/20_sph_legendre/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/20_sph_legendre/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/20_sph_legendre/check_value.cc b/libstdc++-v3/testsuite/special_functions/20_sph_legendre/check_value.cc index 994054a5912..5e4344e8572 100644 --- a/libstdc++-v3/testsuite/special_functions/20_sph_legendre/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/20_sph_legendre/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile.cc b/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile.cc index a10e090a0a2..89ffc218d0d 100644 --- a/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile_2.cc b/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile_2.cc index 81cc52516fa..357dbdea871 100644 --- a/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/20_sph_legendre/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/21_sph_neumann/check_nan.cc b/libstdc++-v3/testsuite/special_functions/21_sph_neumann/check_nan.cc index e85a64323c5..03bc64399d0 100644 --- a/libstdc++-v3/testsuite/special_functions/21_sph_neumann/check_nan.cc +++ b/libstdc++-v3/testsuite/special_functions/21_sph_neumann/check_nan.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-require-c-std "" } // { dg-add-options ieee } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } diff --git a/libstdc++-v3/testsuite/special_functions/21_sph_neumann/check_value.cc b/libstdc++-v3/testsuite/special_functions/21_sph_neumann/check_value.cc index 441594f2615..371501d0e05 100644 --- a/libstdc++-v3/testsuite/special_functions/21_sph_neumann/check_value.cc +++ b/libstdc++-v3/testsuite/special_functions/21_sph_neumann/check_value.cc @@ -1,3 +1,4 @@ +// { dg-do run { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile.cc b/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile.cc index 208b809b5a1..02404b5cffc 100644 --- a/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile.cc +++ b/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile_2.cc b/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile_2.cc index b9d83862244..456d98624d3 100644 --- a/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile_2.cc +++ b/libstdc++-v3/testsuite/special_functions/21_sph_neumann/compile_2.cc @@ -1,4 +1,4 @@ -// { dg-do compile } +// { dg-do compile { target c++11 } } // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } // Copyright (C) 2016 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/16_hermite/check_value.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/16_hermite/check_value.cc index b8605d8aea7..ff4b7b1c301 100644 --- a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/16_hermite/check_value.cc +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/16_hermite/check_value.cc @@ -1,5 +1,3 @@ -// { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" } -// // Copyright (C) 2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free diff --git a/libstdc++-v3/testsuite/util/testsuite_hooks.h b/libstdc++-v3/testsuite/util/testsuite_hooks.h index 98ee30e1607..e14cbb5f516 100644 --- a/libstdc++-v3/testsuite/util/testsuite_hooks.h +++ b/libstdc++-v3/testsuite/util/testsuite_hooks.h @@ -233,9 +233,9 @@ namespace __gnu_test private: static unsigned int _M_count; }; - - // An class of objects that can be used for validating various - // behaviours and guarantees of containers and algorithms defined in + + // A class of objects that can be used for validating various + // behaviors and guarantees of containers and algorithms defined in // the standard library. class copy_tracker { |