1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes
2 ; RUN: opt -S -passes=argpromotion < %s | FileCheck %s
3 ; RUN: opt -S -passes=debugify -o /dev/null < %s
4 ; RUN: opt -S -passes=debugify -o /dev/null < %s --try-experimental-debuginfo-iterators
5 target triple = "x86_64-pc-windows-msvc"
7 define internal void @callee(ptr) {
8 ; CHECK-LABEL: define {{[^@]+}}@callee() {
10 ; CHECK-NEXT: call void @thunk()
11 ; CHECK-NEXT: ret void
18 define void @test1() personality ptr @__CxxFrameHandler3 {
19 ; CHECK-LABEL: define {{[^@]+}}@test1() personality ptr @__CxxFrameHandler3 {
21 ; CHECK-NEXT: invoke void @thunk()
22 ; CHECK-NEXT: to label [[OUT:%.*]] unwind label [[CPAD:%.*]]
24 ; CHECK-NEXT: ret void
26 ; CHECK-NEXT: [[PAD:%.*]] = cleanuppad within none []
27 ; CHECK-NEXT: call void @callee() [ "funclet"(token [[PAD]]) ]
28 ; CHECK-NEXT: cleanupret from [[PAD]] unwind to caller
32 to label %out unwind label %cpad
38 %pad = cleanuppad within none []
39 call void @callee(ptr null) [ "funclet"(token %pad) ]
40 cleanupret from %pad unwind to caller
46 declare i32 @__CxxFrameHandler3(...)