Home | History | Annotate | Download | only in Inline
      1 ; RUN: opt < %s -inline -constprop -S > %t
      2 ; RUN: not grep test_function %t
      3 ; RUN: grep {ret i32 5} %t
      4 
      5 
      6 ; test_function should not be emitted to the .s file.
      7 define available_externally i32 @test_function() {
      8   ret i32 4
      9 }
     10 
     11 
     12 define i32 @result() {
     13   %A = call i32 @test_function()
     14   %B = add i32 %A, 1
     15   ret i32 %B
     16 }
     17