blob: 77c429dae6d60cccd5fe48fb80130bb38019415d [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -prune-eh -S | not grep invoke
Duncan Sands9f76be62007-12-10 19:09:40 +00002
3declare void @nounwind() nounwind
4
5define internal void @foo() {
6 call void @nounwind()
7 ret void
8}
9
10define i32 @caller() {
11 invoke void @foo( )
12 to label %Normal unwind label %Except
13
14Normal: ; preds = %0
15 ret i32 0
16
17Except: ; preds = %0
18 ret i32 1
19}