Home | History | Annotate | Download | only in Inline
      1 ; RUN: opt < %s -inline -S | grep nounwind
      2 ; RUN: opt < %s -inline -S | grep unreachable
      3 
      4 declare i1 @extern()
      5 
      6 define internal i32 @test() {
      7 entry:
      8 	%n = call i1 @extern( )
      9 	br i1 %n, label %r, label %u
     10 r:
     11 	ret i32 0
     12 u:
     13 	unwind
     14 }
     15 
     16 define i32 @caller() {
     17 	%X = call i32 @test( ) nounwind
     18 	ret i32 %X
     19 }
     20