20 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -triple i686-windows -fdeclspec -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-MS2// RUN: %clang_cc1 -std=c++11 -triple i686-windows-itanium -fdeclspec -emit-llvm %s -o - | FileCheck %s3// RUN: %clang_cc1 -std=c++11 -triple x86_64-scei-ps4 -fdeclspec -emit-llvm %s -o - | FileCheck %s4// RUN: %clang_cc1 -std=c++11 -triple x86_64-sie-ps5 -fdeclspec -emit-llvm %s -o - | FileCheck %s5 6template <typename>7struct s {};8 9template <typename T_>10class t : s<T_> {};11 12extern template class t<char>;13template class __declspec(dllexport) t<char>;14 15// CHECK-MS: dllexport {{.*}} @"??4?$t@D@@QAEAAV0@ABV0@@Z"16// CHECK-MS: dllexport {{.*}} @"??4?$s@D@@QAEAAU0@ABU0@@Z"17 18// CHECK: dllexport {{.*}} @_ZN1tIcEaSERKS0_19// CHECK: dllexport {{.*}} @_ZN1sIcEaSERKS0_20