1 ; RUN: opt < %s -prune-eh -S | not grep invoke 2 3 define internal i32 @foo() personality i32 (...)* @__gxx_personality_v0 { 4 invoke i32 @foo( ) 5 to label %Normal unwind label %Except ; <i32>:1 [#uses=0] 6 Normal: ; preds = %0 7 ret i32 12 8 Except: ; preds = %0 9 landingpad { i8*, i32 } 10 catch i8* null 11 ret i32 123 12 } 13 14 define i32 @caller() personality i32 (...)* @__gxx_personality_v0 { 15 invoke i32 @foo( ) 16 to label %Normal unwind label %Except ; <i32>:1 [#uses=0] 17 Normal: ; preds = %0 18 ret i32 0 19 Except: ; preds = %0 20 landingpad { i8*, i32 } 21 catch i8* null 22 ret i32 1 23 } 24 25 declare i32 @__gxx_personality_v0(...) 26