blob: 449047b0d32f6e7a9cd8df3f5dccb99845d5cba1 [file] [log] [blame]
Duncan Sands73d4bb62007-11-22 22:24:59 +00001; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep invoke
2
3declare i32 @func(i8*) nounwind
4
5define i32 @test() {
Duncan Sandsafa3b6d2007-11-28 17:07:01 +00006 invoke i32 @func( i8* null )
Duncan Sands73d4bb62007-11-22 22:24:59 +00007 to label %Cont unwind label %Other ; <i32>:1 [#uses=0]
8
9Cont: ; preds = %0
10 ret i32 0
11
12Other: ; preds = %0
13 ret i32 1
14}