71d52a6a5e5475d15f83e1e5854bc1ab9ce6e61c
[oota-llvm.git] / test / tools / gold / pr19901.ll
1 ; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic
2 ; RUN: llvm-as %p/Inputs/pr19901-1.ll -o %t2.o
3 ; RUN: ld -shared -o %t.so -plugin %llvmshlibdir/LLVMgold.so %t2.o %t.o
4 ; RUN: llvm-objdump -d -symbolize %t.so | FileCheck %s
5
6 ; CHECK: g:
7 ; CHECK-NEXT: push
8 ; CHECK-NEXT: callq f
9
10 target triple = "x86_64-unknown-linux-gnu"
11 define i32 @g() {
12   call void @f()
13   ret i32 0
14 }
15 define linkonce_odr hidden void @f() {
16   ret void
17 }