Add a new "available_externally" linkage type. This is intended
[oota-llvm.git] / test / Transforms / Inline / externally_available.ll
1 ; RUN: llvm-as < %s | opt -inline -constprop | llvm-dis > %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 }