blob: af215aec1da7b3808f7dd031525594d3e2caaf7e [file] [log] [blame]
Dan Gohman72a13d22009-09-08 22:34:10 +00001; RUN: opt %s -prune-eh -S | not grep invoke
Chris Lattner2f272062003-08-31 02:38:46 +00002
Tanya Lattnerf9d25182008-03-19 05:39:35 +00003define internal i32 @foo() {
4 invoke i32 @foo( )
5 to label %Normal unwind label %Except ; <i32>:1 [#uses=0]
6Normal: ; preds = %0
7 ret i32 12
8Except: ; preds = %0
9 ret i32 123
Chris Lattner2f272062003-08-31 02:38:46 +000010}
11
Tanya Lattnerf9d25182008-03-19 05:39:35 +000012define i32 @caller() {
13 invoke i32 @foo( )
14 to label %Normal unwind label %Except ; <i32>:1 [#uses=0]
15Normal: ; preds = %0
16 ret i32 0
17Except: ; preds = %0
18 ret i32 1
Chris Lattner2f272062003-08-31 02:38:46 +000019}
Tanya Lattnerf9d25182008-03-19 05:39:35 +000020