1 ; RUN: llc < %s -mtriple=i386-pc-mingw32
3 define void @func() nounwind personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
5 %call = tail call i8* @malloc()
7 to label %bb1 unwind label %lpad
13 %exn.ptr = landingpad { i8*, i32 }
15 %exn = extractvalue { i8*, i32 } %exn.ptr, 0
16 %eh.selector = extractvalue { i8*, i32 } %exn.ptr, 1
17 %ehspec.fails = icmp slt i32 %eh.selector, 0
18 br i1 %ehspec.fails, label %ehspec.unexpected, label %cleanup
21 resume { i8*, i32 } %exn.ptr
24 tail call void @__cxa_call_unexpected(i8* %exn) noreturn nounwind
28 declare noalias i8* @malloc()
30 declare i32 @__gxx_personality_v0(...)
32 declare void @_Unwind_Resume_or_Rethrow(i8*)
34 declare void @__cxa_call_unexpected(i8*)