2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -extract-blocks -disable-output
|
2015-06-18 04:52:32 +08:00
|
|
|
define i32 @foo() personality i32 (...)* @__gcc_personality_v0 {
|
2008-03-01 17:15:35 +08:00
|
|
|
br label %EB
|
|
|
|
|
|
|
|
EB: ; preds = %0
|
|
|
|
%V = invoke i32 @foo( )
|
|
|
|
to label %Cont unwind label %Unw ; <i32> [#uses=1]
|
|
|
|
|
|
|
|
Cont: ; preds = %EB
|
|
|
|
ret i32 %V
|
|
|
|
|
|
|
|
Unw: ; preds = %EB
|
2015-06-18 04:52:32 +08:00
|
|
|
%exn = landingpad { i8*, i32 }
|
2011-09-21 04:21:16 +08:00
|
|
|
catch i8* null
|
|
|
|
resume { i8*, i32 } %exn
|
2004-11-13 08:06:32 +08:00
|
|
|
}
|
2008-03-01 17:15:35 +08:00
|
|
|
|
2011-09-21 04:21:16 +08:00
|
|
|
declare i32 @__gcc_personality_v0(...)
|