2020-11-30 19:50:45 +08:00
|
|
|
// RUN: %clang_cc1 -std=c++11 -triple i686-windows -fdeclspec -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-MS
|
2016-12-03 09:57:47 +08:00
|
|
|
// RUN: %clang_cc1 -std=c++11 -triple i686-windows-itanium -fdeclspec -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-IA
|
2020-11-30 19:50:45 +08:00
|
|
|
// RUN: %clang_cc1 -std=c++11 -triple x86_64-scei-ps4 -fdeclspec -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-PS4
|
2016-12-03 09:57:47 +08:00
|
|
|
|
|
|
|
template <typename>
|
|
|
|
struct s {};
|
|
|
|
|
|
|
|
template <typename T_>
|
|
|
|
class t : s<T_> {};
|
|
|
|
|
|
|
|
extern template class t<char>;
|
|
|
|
template class __declspec(dllexport) t<char>;
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-MS: dllexport {{.*}} @"??4?$t@D@@QAEAAV0@ABV0@@Z"
|
|
|
|
// CHECK-MS: dllexport {{.*}} @"??4?$s@D@@QAEAAU0@ABU0@@Z"
|
2016-12-03 09:57:47 +08:00
|
|
|
|
|
|
|
// CHECK-IA: dllexport {{.*}} @_ZN1tIcEaSERKS0_
|
|
|
|
// CHECK-IA: dllexport {{.*}} @_ZN1sIcEaSERKS0_
|
|
|
|
|
2020-11-30 19:50:45 +08:00
|
|
|
// CHECK-PS4-NOT: @_ZN1tIcEaSERKS0_
|
|
|
|
// CHECK-PS4-NOT: @_ZN1sIcEaSERKS0_
|