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 target triple = "x86_64-pc-windows-msvc"
6 define internal void @callee(ptr) {
7 ; CHECK-LABEL: define {{[^@]+}}@callee() {
9 ; CHECK-NEXT: call void @thunk()
10 ; CHECK-NEXT: ret void
17 define void @test1() personality ptr @__CxxFrameHandler3 {
18 ; CHECK-LABEL: define {{[^@]+}}@test1() personality ptr @__CxxFrameHandler3 {
20 ; CHECK-NEXT: invoke void @thunk()
21 ; CHECK-NEXT: to label [[OUT:%.*]] unwind label [[CPAD:%.*]]
23 ; CHECK-NEXT: ret void
25 ; CHECK-NEXT: [[PAD:%.*]] = cleanuppad within none []
26 ; CHECK-NEXT: call void @callee() [ "funclet"(token [[PAD]]) ]
27 ; CHECK-NEXT: cleanupret from [[PAD]] unwind to caller
31 to label %out unwind label %cpad
37 %pad = cleanuppad within none []
38 call void @callee(ptr null) [ "funclet"(token %pad) ]
39 cleanupret from %pad unwind to caller
45 declare i32 @__CxxFrameHandler3(...)