[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / Transforms / SimplifyCFG / 2007-11-22-InvokeNoUnwind.ll
blobc38d71ccd28479c2e1657a4ea1c171e90e5d0953
1 ; RUN: opt < %s -simplifycfg -S | FileCheck %s
3 ; CHECK-NOT: invoke
5 declare i32 @func(i8*) nounwind
7 define i32 @test() personality i32 (...)* @__gxx_personality_v0 {
8         invoke i32 @func( i8* null )
9                         to label %Cont unwind label %Other              ; <i32>:1 [#uses=0]
11 Cont:           ; preds = %0
12         ret i32 0
14 Other:          ; preds = %0
15         landingpad { i8*, i32 }
16                 catch i8* null
17         ret i32 1
20 declare i32 @__gxx_personality_v0(...)