mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-27 00:16:21 +08:00
libstdc++: Remove dg-options "-std=gnu++20" from remaining tests
The testsuite will automatically select C++20 for these tests now, and removing the hardcoded -std option allows them to be tested for C++23 and C++26 as well. libstdc++-v3/ChangeLog: * testsuite/18_support/coroutines/95917.cc: Remove dg-options -std=gnu++2a. * testsuite/18_support/coroutines/hash.cc: Likewise. * testsuite/18_support/coroutines/lwg3460.cc: Likewise. * testsuite/18_support/destroying_delete.cc: Likewise. * testsuite/18_support/source_location/1.cc: Likewise. * testsuite/18_support/source_location/consteval.cc: Likewise. * testsuite/18_support/source_location/version.cc: Likewise. * testsuite/19_diagnostics/error_category/operators/three_way.cc: Likewise. * testsuite/19_diagnostics/error_code/operators/three_way.cc: Likewise. * testsuite/19_diagnostics/error_condition/operators/three_way.cc: Likewise. * testsuite/19_diagnostics/stacktrace/output.cc: Likewise. * testsuite/26_numerics/adjacent_difference/lwg2055.cc: Likewise. * testsuite/26_numerics/bit/bit.count/countl_zero.cc: Likewise. * testsuite/26_numerics/bit/bit.count/countr_one.cc: Likewise. * testsuite/26_numerics/bit/bit.count/countr_zero.cc: Likewise. * testsuite/26_numerics/bit/bit.count/popcount.cc: Likewise. * testsuite/26_numerics/bit/bit.pow.two/bit_ceil.cc: Likewise. * testsuite/26_numerics/bit/bit.pow.two/has_single_bit.cc: Likewise. * testsuite/28_regex/iterators/regex_iterator/lwg3719.cc: Likewise. * testsuite/28_regex/iterators/regex_token_iterator/lwg3719.cc: Likewise. * testsuite/28_regex/sub_match/compare_c++20.cc: Likewise. * testsuite/experimental/filesystem/iterators/106201.cc: Likewise. * testsuite/experimental/scopeguard/exit.cc: Likewise. * testsuite/experimental/scopeguard/uniqueres.cc: Likewise.
This commit is contained in:
parent
4be56e298f
commit
8ccae1639f
@ -15,8 +15,8 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a -g0" }
|
||||
// { dg-do compile { target c++2a } }
|
||||
// { dg-options "-g0" }
|
||||
// { dg-do compile { target c++20 } }
|
||||
// { dg-final { scan-assembler-not "dummy_resume_destroy" } }
|
||||
// { dg-final { scan-assembler-not "noop_coro" } }
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do run { target c++2a } }
|
||||
// { dg-do run { target c++20 } }
|
||||
|
||||
#include <coroutine>
|
||||
#include <testsuite_hooks.h>
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do compile { target c++2a } }
|
||||
// { dg-do compile { target c++20 } }
|
||||
|
||||
#include <coroutine>
|
||||
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do run { target c++2a } }
|
||||
// { dg-do run { target c++20 } }
|
||||
|
||||
#include <new>
|
||||
#include <type_traits>
|
||||
|
@ -18,8 +18,8 @@
|
||||
// Example from C++ Standard Working Draft N4842, November 2019 Mailing
|
||||
// Adapted for testing.
|
||||
|
||||
// { dg-options "-std=gnu++2a -include string -include stdexcept" }
|
||||
// { dg-do run { target c++2a } }
|
||||
// { dg-options "-include string -include stdexcept" }
|
||||
// { dg-do run { target c++20 } }
|
||||
|
||||
#include <source_location>
|
||||
|
||||
|
@ -18,8 +18,7 @@
|
||||
// Example from C++ Standard Working Draft N4842, November 2019 Mailing
|
||||
// Adapted for testing.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do compile { target c++2a } }
|
||||
// { dg-do compile { target c++20 } }
|
||||
|
||||
#include <source_location>
|
||||
#include <string_view>
|
||||
@ -119,7 +118,7 @@ int main ()
|
||||
member_defaulted_sl.member.file_name());
|
||||
constexpr std::string_view member_defaulted_sl_fn_name(
|
||||
member_defaulted_sl.member.function_name());
|
||||
static_assert(member_defaulted_sl.member.line() == 36);
|
||||
static_assert(member_defaulted_sl.member.line() == 35);
|
||||
// closing paren of constructor declaration
|
||||
static_assert(member_defaulted_sl.member.column() == 25);
|
||||
static_assert(member_defaulted_sl_fn_name.ends_with("s::s(int)"sv));
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do preprocess { target c++2a } }
|
||||
// { dg-do preprocess { target c++20 } }
|
||||
|
||||
#include <version>
|
||||
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do run { target c++2a } }
|
||||
// { dg-do run { target c++20 } }
|
||||
|
||||
#include <system_error>
|
||||
#include <testsuite_error.h>
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do run { target c++2a } }
|
||||
// { dg-do run { target c++20 } }
|
||||
|
||||
#include <system_error>
|
||||
#include <testsuite_error.h>
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do run { target c++2a } }
|
||||
// { dg-do run { target c++20 } }
|
||||
|
||||
#include <system_error>
|
||||
#include <testsuite_error.h>
|
||||
|
@ -1,4 +1,3 @@
|
||||
// { dg-options "-std=gnu++23" }
|
||||
// { dg-do compile { target c++23 } }
|
||||
// { dg-require-effective-target stacktrace }
|
||||
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do run { target c++2a } }
|
||||
// { dg-do run { target c++20 } }
|
||||
|
||||
#include <numeric>
|
||||
#include <iterator>
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do compile { target c++2a } }
|
||||
// { dg-do compile { target c++20 } }
|
||||
|
||||
#include <bit>
|
||||
#include <limits>
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do compile { target c++2a } }
|
||||
// { dg-do compile { target c++20 } }
|
||||
|
||||
#include <bit>
|
||||
#include <limits>
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do compile { target c++2a } }
|
||||
// { dg-do compile { target c++20 } }
|
||||
|
||||
#include <bit>
|
||||
#include <limits>
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do compile { target c++2a } }
|
||||
// { dg-do compile { target c++20 } }
|
||||
|
||||
#include <bit>
|
||||
#include <limits>
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do compile { target c++2a } }
|
||||
// { dg-do compile { target c++20 } }
|
||||
|
||||
#include <bit>
|
||||
#include <limits>
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do compile { target c++2a } }
|
||||
// { dg-do compile { target c++20 } }
|
||||
|
||||
#include <bit>
|
||||
#include <limits>
|
||||
|
@ -1,4 +1,3 @@
|
||||
// { dg-options "-std=gnu++20" }
|
||||
// { dg-do run { target c++20 } }
|
||||
|
||||
#include <regex>
|
||||
|
@ -1,4 +1,3 @@
|
||||
// { dg-options "-std=gnu++20" }
|
||||
// { dg-do run { target c++20 } }
|
||||
|
||||
#include <regex>
|
||||
|
@ -15,8 +15,7 @@
|
||||
// with this library; see the file COPYING3. If not see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// { dg-options "-std=gnu++2a" }
|
||||
// { dg-do run { target c++2a } }
|
||||
// { dg-do run { target c++20 } }
|
||||
// { dg-timeout-factor 2 }
|
||||
|
||||
#include <regex>
|
||||
|
@ -1,4 +1,3 @@
|
||||
// { dg-options "-std=gnu++20" }
|
||||
// { dg-do compile { target c++20 } }
|
||||
// { dg-require-filesystem-ts "" }
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// { dg-options "-std=gnu++20" }
|
||||
// { dg-do run { target c++20 } }
|
||||
|
||||
#include <experimental/scope>
|
||||
|
@ -1,4 +1,3 @@
|
||||
// { dg-options "-std=gnu++20" }
|
||||
// { dg-do run { target c++20 } }
|
||||
|
||||
#include <experimental/scope>
|
||||
|
Loading…
Reference in New Issue
Block a user