File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
libcxx/test/std/atomics/atomics.lockfree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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; });
You can’t perform that action at this time.
0 commit comments