1 // RUN: %clang_cc1 -fexceptions -fcxx-exceptions %s -triple=i686-windows-msvc -emit-llvm -o - | FileCheck %s
3 // When generating thunks using musttail due to inalloca parameters, don't push
4 // and pop terminate scopes. PR44987
8 NonTrivial(const NonTrivial
&o
);
13 virtual void f(NonTrivial o
) noexcept
;
16 virtual void f(NonTrivial o
) noexcept
;
19 virtual void f(NonTrivial o
) noexcept
;
23 // CHECK-LABEL: define linkonce_odr dso_local x86_thiscallcc void @"?f@C@@G3AEXUNonTrivial@@@Z"(ptr noundef %this, ptr inalloca(<{ %struct.NonTrivial }>) %0)
25 // CHECK: musttail call x86_thiscallcc void @"?f@C@@EAEXUNonTrivial@@@Z"(ptr noundef %{{.*}}, ptr inalloca(<{ %struct.NonTrivial }>) %0)
26 // CHECK-NEXT: ret void