From 54570276db810adebccc5ca70f9721769e06a5f6 Mon Sep 17 00:00:00 2001 From: Matthias Kretz Date: Fri, 27 Oct 2023 15:08:55 +0200 Subject: [PATCH] Fix 32-bit long and native=fixed_size tests ChangeLog: * testsuite/tests/operator_cvt.cc: Disable a few tests involving long when native == fixed_size, these tests are handled already, conditional on sizeof(long). --- testsuite/tests/operator_cvt.cc | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/testsuite/tests/operator_cvt.cc b/testsuite/tests/operator_cvt.cc index 9f6739d..5e448fa 100644 --- a/testsuite/tests/operator_cvt.cc +++ b/testsuite/tests/operator_cvt.cc @@ -159,10 +159,13 @@ template VERIFY((is_substitution_failure)); VERIFY((is_substitution_failure)); - VERIFY((is_substitution_failure>)); - VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure>)); + if constexpr (not std::is_same_v>) + { + VERIFY((is_substitution_failure>)); + VERIFY((is_substitution_failure>)); + } VERIFY((is_substitution_failure, llong>)); VERIFY((is_substitution_failure, ullong>)); @@ -312,10 +315,11 @@ template VERIFY((is_substitution_failure)); VERIFY((is_substitution_failure)); VERIFY((is_substitution_failure)); + VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure>)); - VERIFY((is_substitution_failure>)); - VERIFY((is_substitution_failure>)); + if constexpr (not std::is_same_v>) + VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure, vulong>)); VERIFY((is_substitution_failure, ulong>)); VERIFY((is_substitution_failure, ullong>)); @@ -397,9 +401,12 @@ template VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure>)); - VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure>)); - VERIFY((is_substitution_failure>)); + if constexpr (not std::is_same_v>) + { + VERIFY((is_substitution_failure>)); + VERIFY((is_substitution_failure>)); + } VERIFY((is_substitution_failure, vlong>)); VERIFY((is_substitution_failure, schar>)); VERIFY((is_substitution_failure, short>)); @@ -475,12 +482,13 @@ template binary_op_return_type(); } + if constexpr (not std::is_same_v>) + VERIFY((is_substitution_failure>)); + VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure)); VERIFY((is_substitution_failure)); VERIFY((is_substitution_failure)); VERIFY((is_substitution_failure)); - VERIFY((is_substitution_failure>)); - VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure>)); VERIFY((is_substitution_failure, ullong>));