Test both input file orders.
[oota-llvm.git] / test / tools / gold / X86 / available-externally.ll
1 ; RUN: llvm-as %s -o %t.o
2 ; RUN: llvm-as %p/Inputs/available-externally.ll -o %t2.o
3
4 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
5 ; RUN:    --plugin-opt=emit-llvm \
6 ; RUN:    -shared %t.o %t2.o -o %t3.o
7 ; RUN: llvm-dis %t3.o -o - | FileCheck %s
8
9 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
10 ; RUN:    --plugin-opt=emit-llvm \
11 ; RUN:    -shared %t2.o %t.o -o %t3.o
12 ; RUN: llvm-dis %t3.o -o - | FileCheck %s
13
14 define void @foo() {
15   call void @bar()
16   call void @zed()
17   ret void
18 }
19 define available_externally void @bar() {
20   ret void
21 }
22 define available_externally void @zed() {
23   ret void
24 }
25
26 ; CHECK-DAG: define available_externally void @bar() {
27 ; CHECK-DAG: define void @zed() {