[libcxx-commits] [libcxx] 9232591 - [libc++][NFC] Use TestEachPointerType in TestEachAtomicType (#91480)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri May 10 07:42:56 PDT 2024
Author: Louis Dionne
Date: 2024-05-10T10:42:52-04:00
New Revision: 9232591b04d7a4586e88bdbd1c3e513775c73560
URL: https://github.com/llvm/llvm-project/commit/9232591b04d7a4586e88bdbd1c3e513775c73560
DIFF: https://github.com/llvm/llvm-project/commit/9232591b04d7a4586e88bdbd1c3e513775c73560.diff
LOG: [libc++][NFC] Use TestEachPointerType in TestEachAtomicType (#91480)
That way, if we ever expand TestEachPointerType we will pick up those
changes in TestEachAtomicType.
Added:
Modified:
libcxx/test/support/atomic_helpers.h
Removed:
################################################################################
diff --git a/libcxx/test/support/atomic_helpers.h b/libcxx/test/support/atomic_helpers.h
index 9a32b1ffe85e4..0266a0961067b 100644
--- a/libcxx/test/support/atomic_helpers.h
+++ b/libcxx/test/support/atomic_helpers.h
@@ -116,6 +116,7 @@ template <template <class TestArg> class TestFunctor>
struct TestEachAtomicType {
void operator()() const {
TestEachIntegralType<TestFunctor>()();
+ TestEachPointerType<TestFunctor>()();
TestFunctor<UserAtomicType>()();
/*
Note: These aren't going to be lock-free,
@@ -128,8 +129,6 @@ struct TestEachAtomicType {
TestFunctor<PaddedUserAtomicType>()();
TestFunctor<WeirdUserAtomicType>()();
*/
- TestFunctor<int*>()();
- TestFunctor<const int*>()();
TestFunctor<float>()();
TestFunctor<double>()();
}
More information about the libcxx-commits
mailing list