Dan Gohman | 5bb7c7c | 2009-09-08 22:34:10 +0000 | [diff] [blame] | 1 | ; RUN: opt %s -simplifycfg -S | not grep invoke |
Duncan Sands | 21010b4 | 2007-11-22 22:24:59 +0000 | [diff] [blame] | 2 | |
3 | declare i32 @func(i8*) nounwind | ||||
4 | |||||
5 | define i32 @test() { | ||||
Duncan Sands | 637ec55 | 2007-11-28 17:07:01 +0000 | [diff] [blame] | 6 | invoke i32 @func( i8* null ) |
Duncan Sands | 21010b4 | 2007-11-22 22:24:59 +0000 | [diff] [blame] | 7 | to label %Cont unwind label %Other ; <i32>:1 [#uses=0] |
8 | |||||
9 | Cont: ; preds = %0 | ||||
10 | ret i32 0 | ||||
11 | |||||
12 | Other: ; preds = %0 | ||||
13 | ret i32 1 | ||||
14 | } |