convert to filecheck
[oota-llvm.git] / test / Transforms / SimplifyCFG / invoke_unwind.ll
1 ; This testcase checks to see if the simplifycfg pass is converting invoke
2 ; instructions to call instructions if the handler just rethrows the exception.
3
4 ; RUN: opt < %s -simplifycfg -S | FileCheck %s
5
6 declare void @bar()
7
8 define i32 @test1() {
9 ; CHECK: @test1
10 ; CHECK-NEXT: call void @bar()
11 ; CHECK-NEXT: ret i32 0
12         invoke void @bar( )
13                         to label %Ok unwind label %Rethrow
14 Ok:             ; preds = %0
15         ret i32 0
16 Rethrow:                ; preds = %0
17         unwind
18 }