• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic
2; RUN: opt -module-summary %p/Inputs/pr19901-1.ll -o %t2.o
3; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
4; RUN:     --plugin-opt=thinlto \
5; RUN:     -shared -m elf_x86_64 -o %t.so %t2.o %t.o
6; RUN: llvm-readobj -t %t.so | FileCheck %s
7
8; CHECK:       Symbol {
9; CHECK:         Name: f
10; CHECK-NEXT:    Value:
11; CHECK-NEXT:    Size:
12; CHECK-NEXT:    Binding: Local
13; CHECK-NEXT:    Type: Function
14; CHECK-NEXT:    Other
15; CHECK-NOT:     Seciton
16; CHECK:         Section: .text
17; CHECK-NEXT:  }
18
19target triple = "x86_64-unknown-linux-gnu"
20define i32 @g() {
21  call void @f()
22  ret i32 0
23}
24define linkonce_odr hidden void @f() {
25  ret void
26}
27