[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / thunks-ehspec.cpp
blobcfa67837b0bc70484e43e6b175a6826a32b114e4
1 // RUN: %clang_cc1 -fexceptions -fcxx-exceptions %s -triple=x86_64-pc-linux-gnu -funwind-tables=2 -emit-llvm -o - -O1 -disable-llvm-passes | FileCheck %s
3 // When generating the thunk for secondary, do not push terminate scopes for
4 // either the varargs or non-varargs case. Related to PR44987.
6 struct A {
7 virtual void primary_key();
8 };
9 struct B {
10 virtual void secondary();
11 virtual void secondary_vararg(int, ...);
13 class C : A, B {
14 virtual void primary_key();
15 void secondary() noexcept;
16 void secondary_vararg(int, ...) noexcept;
18 void C::primary_key() {}
20 // CHECK-LABEL: define available_externally void @_ZThn8_N1C9secondaryEv(%class.C* noundef %this) {{.*}} #2
21 // CHECK-NOT: invoke
22 // CHECK: tail call void @_ZN1C9secondaryEv(%class.C* {{[^,]*}} %{{.*}})
23 // CHECK-NOT: invoke
24 // CHECK: ret void
26 // CHECK-LABEL: define available_externally void @_ZThn8_N1C16secondary_varargEiz(%class.C* noundef %this, i32 noundef %0, ...) {{.*}} #2
27 // CHECK-NOT: invoke
28 // CHECK: musttail call void (%class.C*, i32, ...) @_ZN1C16secondary_varargEiz(%class.C* {{[^,]*}} %{{.*}}, i32 noundef %{{.*}}, ...) #3
29 // CHECK-NEXT: ret void