[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / dllexport-vtable-thunks.cpp
blobf0327567d5d080c7f4fb6d28230571dfa23c83c9
1 // RUN: %clang_cc1 -triple x86_64-windows-gnu -fdeclspec -emit-llvm -o - %s | FileCheck %s -DDSO_ATTRS="dso_local dllexport"
2 // RUN: %clang_cc1 -triple x86_64-windows-itanium -fdeclspec -emit-llvm -o - %s | FileCheck %s -DDSO_ATTRS="dso_local dllexport"
3 // RUN: %clang_cc1 -triple x86_64-scei-ps4 -fdeclspec -emit-llvm -o - %s | FileCheck %s -DDSO_ATTRS=dllexport
5 struct __declspec(dllexport) A {
6 virtual void m();
7 };
8 struct __declspec(dllexport) B {
9 virtual void m();
11 struct __declspec(dllexport) C : A, B {
12 virtual void m();
14 void C::m() {}
15 // CHECK: define{{.*}} [[DSO_ATTRS]] void @_ZThn8_N1C1mEv
17 struct Base {
18 virtual void m();
20 struct __declspec(dllexport) Derived : virtual Base {
21 virtual void m();
23 void Derived::m() {}
24 // CHECK: define{{.*}} [[DSO_ATTRS]] void @_ZTv0_n24_N7Derived1mEv