blob: 678e8d76b680cdc195a35d0c45c2df15d8c78042 [file] [log] [blame]
Duncan Sands9f76be62007-12-10 19:09:40 +00001; RUN: llvm-as < %s | opt -prune-eh | llvm-dis | not grep invoke
2
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}