Skip to content

Commit 9232591

Browse files
authored
[libc++][NFC] Use TestEachPointerType in TestEachAtomicType (#91480)
That way, if we ever expand TestEachPointerType we will pick up those changes in TestEachAtomicType.
1 parent 52271a5 commit 9232591

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libcxx/test/support/atomic_helpers.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ template <template <class TestArg> class TestFunctor>
116116
struct TestEachAtomicType {
117117
void operator()() const {
118118
TestEachIntegralType<TestFunctor>()();
119+
TestEachPointerType<TestFunctor>()();
119120
TestFunctor<UserAtomicType>()();
120121
/*
121122
Note: These aren't going to be lock-free,
@@ -128,8 +129,6 @@ struct TestEachAtomicType {
128129
TestFunctor<PaddedUserAtomicType>()();
129130
TestFunctor<WeirdUserAtomicType>()();
130131
*/
131-
TestFunctor<int*>()();
132-
TestFunctor<const int*>()();
133132
TestFunctor<float>()();
134133
TestFunctor<double>()();
135134
}

0 commit comments

Comments
 (0)