Skip to content

Commit eddceb7

Browse files
committed
[libc++] Fix name of is_always_lock_free test which was never being run
1 parent 07e0b8a commit eddceb7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.cpp renamed to libcxx/test/std/atomics/atomics.lockfree/is_always_lock_free.pass.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ void test() {
9696
CHECK_ALWAYS_LOCK_FREE(double);
9797
CHECK_ALWAYS_LOCK_FREE(long double);
9898
#if __has_attribute(vector_size) && defined(_LIBCPP_VERSION)
99+
// Ignore diagnostic about vector types changing the ABI on some targets, since
100+
// that is irrelevant for this test.
101+
TEST_DIAGNOSTIC_PUSH
102+
TEST_CLANG_DIAGNOSTIC_IGNORED("-Wpsabi")
103+
TEST_GCC_DIAGNOSTIC_IGNORED("-Wpsabi")
99104
CHECK_ALWAYS_LOCK_FREE(int __attribute__((vector_size(1 * sizeof(int)))));
100105
CHECK_ALWAYS_LOCK_FREE(int __attribute__((vector_size(2 * sizeof(int)))));
101106
CHECK_ALWAYS_LOCK_FREE(int __attribute__((vector_size(4 * sizeof(int)))));
@@ -111,6 +116,7 @@ void test() {
111116
CHECK_ALWAYS_LOCK_FREE(double __attribute__((vector_size(4 * sizeof(double)))));
112117
CHECK_ALWAYS_LOCK_FREE(double __attribute__((vector_size(16 * sizeof(double)))));
113118
CHECK_ALWAYS_LOCK_FREE(double __attribute__((vector_size(32 * sizeof(double)))));
119+
TEST_DIAGNOSTIC_POP
114120
#endif // __has_attribute(vector_size) && defined(_LIBCPP_VERSION)
115121
CHECK_ALWAYS_LOCK_FREE(struct Empty{});
116122
CHECK_ALWAYS_LOCK_FREE(struct OneInt { int i; });

0 commit comments

Comments
 (0)