Home | History | Annotate | Download | only in Inline
      1 ; RUN: opt < %s -inline -disable-output
      2 
      3 declare i32 @External()
      4 
      5 define internal i32 @Callee() {
      6         %I = call i32 @External( )              ; <i32> [#uses=2]
      7         %J = add i32 %I, %I             ; <i32> [#uses=1]
      8         ret i32 %J
      9 }
     10 
     11 define i32 @Caller() {
     12         %V = invoke i32 @Callee( )
     13                         to label %Ok unwind label %Bad          ; <i32> [#uses=1]
     14 
     15 Ok:             ; preds = %0
     16         ret i32 %V
     17 
     18 Bad:            ; preds = %0
     19         ret i32 0
     20 }
     21 
     22