aboutsummaryrefslogtreecommitdiff
path: root/libcxx/test/std/algorithms
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2023-06-29 18:09:58 -0400
committerLouis Dionne <ldionne.2@gmail.com>2023-06-30 09:17:24 -0400
commitf13e1a65cabbecde1ace3cc02d30a0883d797957 (patch)
tree8fd935a2b215fe3e75a3eaff2077751124c216fa /libcxx/test/std/algorithms
parent7d644dc59826728d8f1a345cee13639a2617e9aa (diff)
downloadllvm-f13e1a65cabbecde1ace3cc02d30a0883d797957.zip
llvm-f13e1a65cabbecde1ace3cc02d30a0883d797957.tar.gz
llvm-f13e1a65cabbecde1ace3cc02d30a0883d797957.tar.bz2
[libc++] Revert __uninitialized_buffer changes
This patch reverts the following commits: 015cd317eaed28a923d14a33c9d6739012a688be (add missing HIDE_FROM_ABI) 420a204d52205f1277a8d5df3dbafac6082e02e2 (add _LIBCPP_NO_CFI) 31eeba3f7c0e2ef4a21c07da9326a4ae1a8de7e2 (add __uninitialized_buffer) It also reverts a small part of b935ab8e747cf52ff12471879460206a9f433eea which is required to make the stable_partition.pass.cpp test pass on GCC. Some issues were pointed out in https://reviews.llvm.org/D152208 and in https://reviews.llvm.org/D154017, so I am reverting this patch until we have time to weigh the various solutions and get consensus on the design of the API. Differential Revision: https://reviews.llvm.org/D154161
Diffstat (limited to 'libcxx/test/std/algorithms')
-rw-r--r--libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp
index 5fc6633..85d12d0 100644
--- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp
@@ -282,6 +282,9 @@ test()
assert(array[9] == P(0, 2));
}
#if TEST_STD_VER >= 11 && !defined(TEST_HAS_NO_EXCEPTIONS)
+ // TODO: Re-enable this test once we're no longer using get_temporary_buffer().
+ // For now it trips up GCC due to the use of always_inline.
+#if 0
{ // check that the algorithm still works when no memory is available
std::vector<int> vec(150, 3);
vec[5] = 6;
@@ -297,6 +300,7 @@ test()
assert(std::is_partitioned(vec.begin(), vec.end(), [](int i) { return i < 5; }));
getGlobalMemCounter()->reset();
}
+#endif
#endif // TEST_STD_VER >= 11 && !defined(TEST_HAS_NO_EXCEPTIONS)
}