[libcxx-commits] [libcxx] 91876ea - [libc++] Increase the constexpr steps limit on some `bitset` tests.

Konstantin Varlamov via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 27 15:29:46 PDT 2023


Author: Konstantin Varlamov
Date: 2023-07-27T15:29:37-07:00
New Revision: 91876eab93a9f0ef29a339ed99bdb1c8ed1e85c6

URL: https://github.com/llvm/llvm-project/commit/91876eab93a9f0ef29a339ed99bdb1c8ed1e85c6
DIFF: https://github.com/llvm/llvm-project/commit/91876eab93a9f0ef29a339ed99bdb1c8ed1e85c6.diff

LOG: [libc++] Increase the constexpr steps limit on some `bitset` tests.

Prevent these tests from failing on some platforms (the number of
constexpr steps increased by https://reviews.llvm.org/D154860).

Added: 
    

Modified: 
    libcxx/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp
    libcxx/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp b/libcxx/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp
index 0d0d62432e01da..8f3c0959c622f0 100644
--- a/libcxx/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp
+++ b/libcxx/test/std/utilities/template.bitset/bitset.members/op_or_eq.pass.cpp
@@ -6,6 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
+// ADDITIONAL_COMPILE_FLAGS(has-fconstexpr-steps): -fconstexpr-steps=15000000
+
 // bitset<N>& operator|=(const bitset<N>& rhs); // constexpr since C++23
 
 #include <bitset>

diff  --git a/libcxx/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp b/libcxx/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp
index bf182523880d1a..ef4b7fc60329dd 100644
--- a/libcxx/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp
+++ b/libcxx/test/std/utilities/template.bitset/bitset.members/right_shift_eq.pass.cpp
@@ -6,6 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
+// ADDITIONAL_COMPILE_FLAGS(has-fconstexpr-steps): -fconstexpr-steps=15000000
+
 // bitset<N>& operator<<=(size_t pos); // constexpr since C++23
 
 #include <bitset>


        


More information about the libcxx-commits mailing list