[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / CodeGenCXX / windows-implicit-dllexport-template-specialization.cpp
blobd281826ee70fe6ff524d1235fd95b6d0e35f4d73
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
3 // RUN: %clang_cc1 -std=c++11 -triple x86_64-scei-ps4 -fdeclspec -emit-llvm %s -o - | FileCheck %s
4 // RUN: %clang_cc1 -std=c++11 -triple x86_64-sie-ps5 -fdeclspec -emit-llvm %s -o - | FileCheck %s
6 template <typename>
7 struct s {};
9 template <typename T_>
10 class t : s<T_> {};
12 extern template class t<char>;
13 template class __declspec(dllexport) t<char>;
15 // CHECK-MS: dllexport {{.*}} @"??4?$t@D@@QAEAAV0@ABV0@@Z"
16 // CHECK-MS: dllexport {{.*}} @"??4?$s@D@@QAEAAU0@ABU0@@Z"
18 // CHECK: dllexport {{.*}} @_ZN1tIcEaSERKS0_
19 // CHECK: dllexport {{.*}} @_ZN1sIcEaSERKS0_