Dan Gohman | 1880092 | 2009-09-11 18:01:28 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -prune-eh -S | not grep invoke |
Duncan Sands | 9f76be6 | 2007-12-10 19:09:40 +0000 | [diff] [blame] | 2 | |
3 | declare void @nounwind() nounwind | ||||
4 | |||||
5 | define internal void @foo() { | ||||
6 | call void @nounwind() | ||||
7 | ret void | ||||
8 | } | ||||
9 | |||||
10 | define i32 @caller() { | ||||
11 | invoke void @foo( ) | ||||
12 | to label %Normal unwind label %Except | ||||
13 | |||||
14 | Normal: ; preds = %0 | ||||
15 | ret i32 0 | ||||
16 | |||||
17 | Except: ; preds = %0 | ||||
18 | ret i32 1 | ||||
19 | } |