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
56void __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.
5657static_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
6061static_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__
158159static_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
162163static_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__
171172static_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
174175static_assert (!__is_trivially_relocatable(S18), " " ); // expected-warning{{deprecated}}
175176static_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__
202203static_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
204206static_assert (!__is_trivially_relocatable(S19), " " ); // expected-warning{{deprecated}}
205207static_assert (!__builtin_is_cpp_trivially_relocatable(S19), " " );
206208#endif
0 commit comments