[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / windows-implicit-dllexport-template-specialization.cpp
blob726be7355022920190b97b26e847eebfdc1187f5
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 // RUN: %clang_cc1 -std=c++11 -triple x86_64-scei-ps4 -fdeclspec -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-PS4
5 template <typename>
6 struct s {};
8 template <typename T_>
9 class t : s<T_> {};
11 extern template class t<char>;
12 template class __declspec(dllexport) t<char>;
14 // CHECK-MS: dllexport {{.*}} @"??4?$t@D@@QAEAAV0@ABV0@@Z"
15 // CHECK-MS: dllexport {{.*}} @"??4?$s@D@@QAEAAU0@ABU0@@Z"
17 // CHECK-IA: dllexport {{.*}} @_ZN1tIcEaSERKS0_
18 // CHECK-IA: dllexport {{.*}} @_ZN1sIcEaSERKS0_
20 // CHECK-PS4-NOT: @_ZN1tIcEaSERKS0_
21 // CHECK-PS4-NOT: @_ZN1sIcEaSERKS0_