diff options
Diffstat (limited to 'libstdc++-v3/testsuite/21_strings')
88 files changed, 90 insertions, 19 deletions
diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/79162.cc b/libstdc++-v3/testsuite/21_strings/basic_string/79162.cc index a1a69780793..cedf6b76a0f 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/79162.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/79162.cc @@ -1,5 +1,5 @@ // { dg-options "-std=gnu++17" } -// { dg-do compile } +// { dg-do compile { target c++17 } } // Copyright (C) 2017-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/7.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/7.cc index 7e0e9983898..61cfbe6caf7 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/7.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/7.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/7.cc b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/7.cc index 44920d5e0bb..c5491a3bd02 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/7.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/7.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/lwg2758.cc b/libstdc++-v3/testsuite/21_strings/basic_string/lwg2758.cc index 16abb9c4bd7..3284caeaad6 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/lwg2758.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/lwg2758.cc @@ -1,5 +1,5 @@ // { dg-options "-std=gnu++17" } -// { dg-do compile } +// { dg-do compile { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/lwg2946.cc b/libstdc++-v3/testsuite/21_strings/basic_string/lwg2946.cc index e95cd7777d6..ccb577aa902 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/lwg2946.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/lwg2946.cc @@ -1,5 +1,5 @@ // { dg-options "-std=gnu++17" } -// { dg-do compile } +// { dg-do compile { target c++17 } } // Copyright (C) 2017-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/append/char/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/append/char/4.cc index cc8f896f1a3..2eac4e9e075 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/append/char/4.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/append/char/4.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/append/wchar_t/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/append/wchar_t/4.cc index c3e13d1f9fa..c09b55b4bd5 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/append/wchar_t/4.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/append/wchar_t/4.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/4.cc index 29d4e4c6c0b..5497f155b14 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/4.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/char/4.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/4.cc index 136388d69f4..59e874fd89e 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/4.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/assign/wchar_t/4.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/insert/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/insert/char/3.cc index 7fd5850fe58..aaefc7f0ef7 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/insert/char/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/insert/char/3.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/insert/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/insert/wchar_t/3.cc index d585f85306e..48b828710bf 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/insert/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/insert/wchar_t/3.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/replace/char/7.cc b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/replace/char/7.cc index 8918edd54a4..fe97517fb19 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/replace/char/7.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/replace/char/7.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/replace/wchar_t/7.cc b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/replace/wchar_t/7.cc index 9622ebefcff..0e2437b84ac 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/replace/wchar_t/7.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/modifiers/replace/wchar_t/7.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operations/compare/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operations/compare/char/2.cc index d9c9aaed9fa..f2713122a44 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/operations/compare/char/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/operations/compare/char/2.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc index b8856e530be..a83c9a1db07 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operations/data/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operations/data/char/2.cc index 7608a0dcb4f..edd7029a707 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/operations/data/char/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/operations/data/char/2.cc @@ -16,6 +16,7 @@ // <http://www.gnu.org/licenses/>. // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // C++17 21.3.1.7 [string.ops] string operations diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operations/data/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operations/data/wchar_t/2.cc index 3c977e05464..7099695e739 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/operations/data/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/operations/data/wchar_t/2.cc @@ -16,6 +16,7 @@ // <http://www.gnu.org/licenses/>. // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // C++17 21.3.1.7 [string.ops] string operations diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operations/find/char/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operations/find/char/5.cc index 36609117294..746551b0c48 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/operations/find/char/5.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/operations/find/char/5.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operations/find/wchar_t/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operations/find/wchar_t/5.cc index 56f98ea990a..334904d5c04 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/operations/find/wchar_t/5.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/operations/find/wchar_t/5.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/5.cc index 0aabab479df..c6f9b048d05 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/5.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/operators/char/5.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/5.cc b/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/5.cc index b9437a3504e..1510766578c 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/5.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/operators/wchar_t/5.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2016-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/capacity/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/capacity/1.cc index 5bbf3338165..0307a5bd85d 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/capacity/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/capacity/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/1.cc index e86254b8e85..128ce812ebc 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/2.cc index 8098654315c..7bda603d36c 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/2.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/3.cc index dae84097e4e..a1bb285a035 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/char/3.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc index ccf7cd361ed..81f622f1295 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/2.cc index 62928fcebc6..ea912c27d4f 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/2.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/3.cc index f00b0361e16..a806773c846 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/cons/wchar_t/3.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/1.cc index b1bc4aa39a5..52e8d3faacb 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/2.cc index 29402d066e2..5978c366824 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/2.cc @@ -1,6 +1,7 @@ -// { dg-do run { xfail *-*-* } } // { dg-options "-std=gnu++17 -O0" } +// { dg-do run { target c++17 } } // { dg-require-debug-mode "" } +// { dg-xfail-run-if "expect debug mode assertion to fail" { *-*-* } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/empty.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/empty.cc index f22bc53886c..44de1a46340 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/empty.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/empty.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/front_back.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/front_back.cc index 60174f0f33c..12992b2c34f 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/front_back.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/char/front_back.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // { dg-require-string-conversions "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc index bae9f5b4b06..9749941bd71 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/2.cc index 1f811538bb4..90be1b37374 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/2.cc @@ -1,6 +1,7 @@ -// { dg-do run { xfail *-*-* } } // { dg-options "-std=gnu++17 -O0" } +// { dg-do run { target c++17 } } // { dg-require-debug-mode "" } +// { dg-xfail-run-if "expect debug mode assertion to fail" { *-*-* } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/empty.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/empty.cc index 52c8dd52016..35f411230f1 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/empty.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/empty.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/front_back.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/front_back.cc index 812e9f96257..edf50fb2c24 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/front_back.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/element_access/wchar_t/front_back.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // { dg-require-string-conversions "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/include.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/include.cc index bca70bfe0a8..688a5a00c8b 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/include.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/include.cc @@ -20,6 +20,6 @@ // NB: This issue affected only debug-mode. // { dg-options "-std=gnu++17 -fno-rtti" } -// { dg-do compile } +// { dg-do compile { target c++17 } } #include <string_view> diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/1.cc index fa2f1f91a46..c565cca8bb4 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/2.cc index 8fa3e5ce6e5..7bf91c1ad83 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/2.cc @@ -23,6 +23,7 @@ // all of the string_view class. // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // { dg-require-fileio "" } #include <string_view> diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/3.cc index 0d689c3eff4..69bb7732d07 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/char/3.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/pod/10081-out.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/pod/10081-out.cc index 0ed6e8e4883..89e94f329ff 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/pod/10081-out.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/pod/10081-out.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/1.cc index 9d632573c79..16eb9fe898a 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc index 0d587e4bf04..ce75c89c824 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/2.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // { dg-require-fileio "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/3.cc index b1fe5bc3891..47861cbdd79 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/inserters/wchar_t/3.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/types-char8_t.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/types-char8_t.cc index c84acfa6acd..8a155886f1a 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/types-char8_t.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/types-char8_t.cc @@ -1,5 +1,5 @@ // { dg-options "-std=gnu++17 -fchar8_t" } -// { dg-do compile } +// { dg-do compile { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/types.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/types.cc index f0c1c2cd5d8..5d8fc1465e4 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/types.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/types.cc @@ -1,5 +1,5 @@ // { dg-options "-std=gnu++17" } -// { dg-do compile } +// { dg-do compile { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/values-char8_t.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/values-char8_t.cc index 9acf11117dd..4e2aa111080 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/values-char8_t.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/values-char8_t.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17 -fchar8_t" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/values.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/values.cc index f01b2126697..f00778a82c9 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/values.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/literals/values.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_prefix/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_prefix/char/1.cc index 9c207ef0948..1f00688a915 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_prefix/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_prefix/char/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc index aa7674fef37..fee59280959 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_suffix/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_suffix/char/1.cc index 47bacd2dbf1..e222188b45a 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_suffix/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_suffix/char/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc index 1548a81beb3..148c8d3150a 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/char/1.cc index b4ef8c034f4..9bd3889584d 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/char/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/char/13650.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/char/13650.cc index f1de99145a9..0c15eb2b7e6 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/char/13650.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/char/13650.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/wchar_t/1.cc index f609e9636ff..91eea8412f9 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/wchar_t/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/wchar_t/13650.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/wchar_t/13650.cc index 58a3e9a6dcc..e4eef0fbb63 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/wchar_t/13650.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/compare/wchar_t/13650.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/1.cc index c672b7fa609..7dc6ed59768 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/char/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc index fbe6c466163..ce909d2342f 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/copy/wchar_t/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/data/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/data/char/1.cc index 18fc9f5fe88..8a0dfd990bb 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/data/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/data/char/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2014 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/data/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/data/wchar_t/1.cc index 6596db52899..f4c9a51cd50 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/data/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/data/wchar_t/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2014 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/1.cc index 73f752eabd6..c3cb4466d2d 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/2.cc index 8565b5ff450..4313ac6f761 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/2.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/3.cc index 5f171e9dc20..3dad3623260 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/3.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/4.cc index f4391e675d7..c95ded1254d 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/4.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/char/4.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc index 6a2f3759beb..591d680f13b 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc index ee0ed0941e0..947713dc306 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/2.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc index 6b8d2b82d23..a9a07c3cc61 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/3.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/4.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/4.cc index ac504ce4c09..0da4f05c434 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/4.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/find/wchar_t/4.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/1.cc index 1e0b948912b..39e8b977a7b 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/2.cc index fdca3fc0209..4e6affb803b 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/2.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/3.cc index 809f015c3d5..f462a7b7e4d 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/char/3.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/1.cc index ab3f80f4cd9..2246332e3d5 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/2.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/2.cc index 8fb37930180..12fff465c10 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/2.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/2.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/3.cc index 4e32edfe1c8..4f9e225bcc7 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/rfind/wchar_t/3.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/string_conversion/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/string_conversion/1.cc index 806f5d4de67..8d853232ae9 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/string_conversion/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/string_conversion/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2014-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/substr/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/substr/char/1.cc index 1c22d62063b..f67c119f0d8 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/substr/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/substr/char/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/substr/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/substr/wchar_t/1.cc index 8a31bd5e035..a13b26dfb39 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/substr/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/operations/substr/wchar_t/1.cc @@ -1,4 +1,5 @@ // { dg-options "-std=gnu++17" } +// { dg-do run { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/range_access/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/range_access/char/1.cc index 3313cc6005e..e14faa22c61 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/range_access/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/range_access/char/1.cc @@ -1,5 +1,5 @@ -// { dg-do compile } // { dg-options "-std=gnu++17" } +// { dg-do compile { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/range_access/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/range_access/wchar_t/1.cc index b899bd582bb..db53491a079 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/range_access/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/range_access/wchar_t/1.cc @@ -1,5 +1,5 @@ -// { dg-do compile } // { dg-options "-std=gnu++17" } +// { dg-do compile { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/1.cc index 0cf21ad443b..b09d4ec663d 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/1.cc @@ -20,7 +20,7 @@ #include <string_view> -// { dg-do compile } // { dg-options "-std=gnu++17" } +// { dg-do compile { target c++17 } } template class std::basic_string_view<int, std::char_traits<int>>; diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char/1.cc index 0cf62561a07..a3eb2f34342 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char/1.cc @@ -1,5 +1,5 @@ -// { dg-do compile } // { dg-options "-std=gnu++17" } +// { dg-do compile { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc index 47fdd41aa9c..3d32915505b 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc @@ -1,5 +1,5 @@ -// { dg-do compile } // { dg-options "-std=gnu++17" } +// { dg-do compile { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc index 7abd74b3500..5bb50e614ed 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc @@ -1,5 +1,5 @@ -// { dg-do compile } // { dg-options "-std=gnu++17" } +// { dg-do compile { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char8_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char8_t/1.cc index 4f31f19031d..a951f75e1b0 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char8_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/char8_t/1.cc @@ -1,5 +1,5 @@ -// { dg-do compile } // { dg-options "-std=gnu++17 -fchar8_t" } +// { dg-do compile { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc index 41a2add47c9..bfbb64e2a86 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc @@ -1,5 +1,5 @@ -// { dg-do compile } // { dg-options "-std=gnu++17" } +// { dg-do compile { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/typedefs.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/typedefs.cc index 71299a919d9..f3236d1d0aa 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/requirements/typedefs.cc @@ -1,6 +1,6 @@ // { dg-options "-std=gnu++17" } -// { dg-do compile } +// { dg-do compile { target c++17 } } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc index a0bbca1c89b..c1ece8381e7 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/typedefs.cc @@ -1,5 +1,5 @@ // { dg-options "-std=gnu++17" } -// { dg-do compile } +// { dg-do compile { target c++17 } } // Copyright (C) 2014-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/21_strings/basic_string_view/types/1.cc b/libstdc++-v3/testsuite/21_strings/basic_string_view/types/1.cc index b95036d133c..818c3bbe044 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string_view/types/1.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string_view/types/1.cc @@ -18,7 +18,7 @@ // // { dg-options "-std=gnu++17" } -// { dg-do compile } +// { dg-do compile { target c++17 } } #include <string_view> |