File tree 1 file changed +6
-0
lines changed
libcxx/test/std/atomics/atomics.lockfree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,11 @@ void test() {
96
96
CHECK_ALWAYS_LOCK_FREE (double );
97
97
CHECK_ALWAYS_LOCK_FREE (long double );
98
98
#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" )
99
104
CHECK_ALWAYS_LOCK_FREE (int __attribute__ ((vector_size (1 * sizeof (int )))));
100
105
CHECK_ALWAYS_LOCK_FREE (int __attribute__ ((vector_size (2 * sizeof (int )))));
101
106
CHECK_ALWAYS_LOCK_FREE (int __attribute__ ((vector_size (4 * sizeof (int )))));
@@ -111,6 +116,7 @@ void test() {
111
116
CHECK_ALWAYS_LOCK_FREE (double __attribute__ ((vector_size (4 * sizeof (double )))));
112
117
CHECK_ALWAYS_LOCK_FREE (double __attribute__ ((vector_size (16 * sizeof (double )))));
113
118
CHECK_ALWAYS_LOCK_FREE (double __attribute__ ((vector_size (32 * sizeof (double )))));
119
+ TEST_DIAGNOSTIC_POP
114
120
#endif // __has_attribute(vector_size) && defined(_LIBCPP_VERSION)
115
121
CHECK_ALWAYS_LOCK_FREE (struct Empty {});
116
122
CHECK_ALWAYS_LOCK_FREE (struct OneInt { int i; });
You can’t perform that action at this time.
0 commit comments