Skip to content

Commit 5db477a

Browse files
committed
fix ps4 tests
1 parent 8268662 commit 5db477a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

clang/test/SemaCXX/attr-trivial-abi.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
22
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple x86_64-windows-msvc -std=c++11
3+
// RUN: %clang_cc1 -fsyntax-only -verify %s -triple x86_64-scei-ps4 -std=c++11
34

45

56
void __attribute__((trivial_abi)) foo(); // expected-warning {{'trivial_abi' attribute only applies to classes}}
@@ -54,7 +55,7 @@ struct __attribute__((trivial_abi)) S3_3 { // expected-warning {{'trivial_abi' c
5455
// copy constructor is trivial for calls *or deleted*, while other platforms do
5556
// not accept deleted constructors.
5657
static_assert(__is_trivially_relocatable(S3_3), ""); // expected-warning{{deprecated}}
57-
static_assert(__builtin_is_cpp_trivially_relocatable(S3_3), "");
58+
static_assert(!__builtin_is_cpp_trivially_relocatable(S3_3), "");
5859

5960
#else
6061
static_assert(!__is_trivially_relocatable(S3_3), ""); // expected-warning{{deprecated}}
@@ -156,7 +157,7 @@ struct __attribute__((trivial_abi)) CopyMoveDeleted { // expected-warning {{'tri
156157
};
157158
#ifdef __ORBIS__
158159
static_assert(__is_trivially_relocatable(CopyMoveDeleted), ""); // expected-warning{{deprecated}}
159-
static_assert(__builtin_is_cpp_trivially_relocatable(CopyMoveDeleted), "");
160+
static_assert(!__builtin_is_cpp_trivially_relocatable(CopyMoveDeleted), "");
160161

161162
#else
162163
static_assert(!__is_trivially_relocatable(CopyMoveDeleted), ""); // expected-warning{{deprecated}}
@@ -169,7 +170,7 @@ struct __attribute__((trivial_abi)) S18 { // expected-warning {{'trivial_abi' ca
169170
};
170171
#ifdef __ORBIS__
171172
static_assert(__is_trivially_relocatable(S18), ""); // expected-warning{{deprecated}}
172-
static_assert(__builtin_is_cpp_trivially_relocatable(S18), "");
173+
static_assert(!__builtin_is_cpp_trivially_relocatable(S18), "");
173174
#else
174175
static_assert(!__is_trivially_relocatable(S18), ""); // expected-warning{{deprecated}}
175176
static_assert(!__builtin_is_cpp_trivially_relocatable(S18), "");
@@ -200,7 +201,8 @@ struct __attribute__((trivial_abi)) S19 { // expected-warning {{'trivial_abi' ca
200201
};
201202
#ifdef __ORBIS__
202203
static_assert(__is_trivially_relocatable(S19), ""); // expected-warning{{deprecated}}
203-
static_assert(__builtin_is_cpp_trivially_relocatable(S19), "");
204+
static_assert(!__builtin_is_cpp_trivially_relocatable(S19), "");
205+
#else
204206
static_assert(!__is_trivially_relocatable(S19), ""); // expected-warning{{deprecated}}
205207
static_assert(!__builtin_is_cpp_trivially_relocatable(S19), "");
206208
#endif

0 commit comments

Comments
 (0)