1 ; RUN: llc -mtriple=x86_64-windows-msvc < %s | FileCheck %s
3 @str_recovered = internal unnamed_addr constant [10 x i8] c"recovered\00", align 1
10 to label %invoke.cont unwind label %lpad
12 invoke.cont: ; preds = %entry
13 %call = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @str_recovered, i64 0, i64 0))
17 lpad: ; preds = %entry
18 %0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__C_specific_handler to i8*)
20 %1 = extractvalue { i8*, i32 } %0, 0
21 %2 = extractvalue { i8*, i32 } %0, 1
22 %call2 = invoke i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @str_recovered, i64 0, i64 0))
23 to label %invoke.cont1 unwind label %terminate.lpad
25 invoke.cont1: ; preds = %lpad
26 resume { i8*, i32 } %0
28 terminate.lpad: ; preds = %lpad
29 %3 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__C_specific_handler to i8*)
36 ; CHECK: .seh_handlerdata
38 ; CHECK-NEXT: .long .Ltmp0@IMGREL
39 ; CHECK-NEXT: .long .Ltmp1@IMGREL
40 ; CHECK-NEXT: .long main.cleanup@IMGREL
43 ; CHECK-LABEL: main.cleanup:
47 declare i32 @__C_specific_handler(...)
49 declare i32 @puts(i8*)