2013-04-09 13:18:53 +08:00
|
|
|
; RUN: opt < %s -simplifycfg -S | FileCheck %s
|
|
|
|
|
|
|
|
; CHECK-NOT: invoke
|
2007-11-23 06:24:59 +08:00
|
|
|
|
|
|
|
declare i32 @func(i8*) nounwind
|
|
|
|
|
2015-06-18 04:52:32 +08:00
|
|
|
define i32 @test() personality i32 (...)* @__gxx_personality_v0 {
|
2007-11-29 01:07:01 +08:00
|
|
|
invoke i32 @func( i8* null )
|
2007-11-23 06:24:59 +08:00
|
|
|
to label %Cont unwind label %Other ; <i32>:1 [#uses=0]
|
|
|
|
|
|
|
|
Cont: ; preds = %0
|
|
|
|
ret i32 0
|
|
|
|
|
|
|
|
Other: ; preds = %0
|
2015-06-18 04:52:32 +08:00
|
|
|
landingpad { i8*, i32 }
|
2015-02-11 09:23:16 +08:00
|
|
|
catch i8* null
|
2007-11-23 06:24:59 +08:00
|
|
|
ret i32 1
|
|
|
|
}
|
2015-02-11 09:23:16 +08:00
|
|
|
|
|
|
|
declare i32 @__gxx_personality_v0(...)
|