11// RUN: %clang_cc1 -emit-llvm -triple i686-windows-itanium -fdeclspec %s -o - | FileCheck %s --check-prefixes=CHECK,WI
2- // RUN: %clang_cc1 -emit-llvm -triple x86_64-scei-ps4 -fdeclspec %s -o - | FileCheck %s --check-prefixes=CHECK,PS4
3- // RUN: %clang_cc1 -emit-llvm -triple x86_64-sie-ps5 -fdeclspec %s -o - | FileCheck %s --check-prefixes=CHECK,PS4
2+ // RUN: %clang_cc1 -emit-llvm -triple x86_64-scei-ps4 -fdeclspec %s -o - | FileCheck %s --check-prefixes=CHECK,PS
3+ // RUN: %clang_cc1 -emit-llvm -triple x86_64-sie-ps5 -fdeclspec %s -o - | FileCheck %s --check-prefixes=CHECK,PS
44
55#define JOIN2 (x, y ) x##y
66#define JOIN (x, y ) JOIN2(x, y)
@@ -27,18 +27,14 @@ template class __declspec(dllexport) c<int>;
2727extern template class c <char >;
2828template class __declspec (dllexport) c<char >;
2929
30- // WI: define {{.*}} dllexport {{.*}} @_ZN1cIcEaSERKS0_
31- // WI: define {{.*}} dllexport {{.*}} @_ZN1cIcE1fEv
32- // PS4-NOT: @_ZN1cIcEaSERKS0_
33- // PS4: define weak_odr void @_ZN1cIcE1fEv
30+ // CHECK: define {{.*}} dllexport {{.*}} @_ZN1cIcEaSERKS0_
31+ // CHECK: define {{.*}} dllexport {{.*}} @_ZN1cIcE1fEv
3432
3533c<double > g;
3634template class __declspec (dllexport) c<double >;
3735
38- // WI: define {{.*}} dllexport {{.*}} @_ZN1cIdEaSERKS0_
39- // WI: define {{.*}} dllexport {{.*}} @_ZN1cIdE1fEv
40- // PS4-NOT: @_ZN1cIdEaSERKS0_
41- // PS4: define weak_odr void @_ZN1cIdE1fEv
36+ // CHECK: define {{.*}} dllexport {{.*}} @_ZN1cIdEaSERKS0_
37+ // CHECK: define {{.*}} dllexport {{.*}} @_ZN1cIdE1fEv
4238
4339template <class T >
4440struct outer {
@@ -59,4 +55,4 @@ USEMEMFUNC(outer<char>::inner, f)
5955
6056// CHECK-DAG: declare dllimport {{.*}} @_ZN5outerIcE1fEv
6157// WI-DAG: define {{.*}} @_ZN5outerIcE5inner1fEv
62- // PS4 -DAG: declare {{.*}} @_ZN5outerIcE5inner1fEv
58+ // PS -DAG: declare {{.*}} @_ZN5outerIcE5inner1fEv
0 commit comments