Clang Project

clang_source_code/test/CodeGenCXX/windows-implicit-dllexport-template-specialization.cpp
1// RUN: %clang_cc1 -std=c++11 -triple i686-windows -fdeclspec -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-MS
2// RUN: %clang_cc1 -std=c++11 -triple i686-windows-itanium -fdeclspec -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-IA
3
4template <typename>
5struct s {};
6
7template <typename T_>
8class t : s<T_> {};
9
10extern template class t<char>;
11template class __declspec(dllexport) t<char>;
12
13// CHECK-MS: dllexport {{.*}} @"??4?$t@D@@QAEAAV0@ABV0@@Z"
14// CHECK-MS: dllexport {{.*}} @"??4?$s@D@@QAEAAU0@ABU0@@Z"
15
16// CHECK-IA: dllexport {{.*}} @_ZN1tIcEaSERKS0_
17// CHECK-IA: dllexport {{.*}} @_ZN1sIcEaSERKS0_
18
19