gold-plugin: fix test to allow default visibility on local symbols
[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: %gold -shared -o %t.so -plugin %llvmshlibdir/LLVMgold.so %t2.o %t.o
4 ; RUN: llvm-readobj -t %t.so | FileCheck %s
5
6 ; CHECK:       Symbol {
7 ; CHECK:         Name: f
8 ; CHECK-NEXT:    Value:
9 ; CHECK-NEXT:    Size:
10 ; CHECK-NEXT:    Binding: Local
11 ; CHECK-NEXT:    Type: Function
12 ; CHECK-NEXT:    Other: {{2|0}}
13 ; CHECK-NEXT:    Section: .text
14 ; CHECK-NEXT:  }
15
16 target triple = "x86_64-unknown-linux-gnu"
17 define i32 @g() {
18   call void @f()
19   ret i32 0
20 }
21 define linkonce_odr hidden void @f() {
22   ret void
23 }