• 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%shlibext \
4; RUN:     --plugin-opt=thinlto \
5; RUN:     -shared -m elf_x86_64 -o %t.so %t2.o %t.o
6; RUN: llvm-readobj --symbols %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 datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
20target triple = "x86_64-unknown-linux-gnu"
21define i32 @g() {
22  call void @f()
23  ret i32 0
24}
25define linkonce_odr hidden void @f() {
26  ret void
27}
28