brintos

brintos / llvm-project-archived public Read only

0
0
Text · 773 B · 612bea9 Raw
28 lines · plain
1; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic2; RUN: opt -module-summary %p/Inputs/pr19901-1.ll -o %t2.o3; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \4; RUN:     --plugin-opt=thinlto \5; RUN:     -shared -m elf_x86_64 -o %t.so %t2.o %t.o6; RUN: llvm-readobj --symbols %t.so | FileCheck %s7 8; CHECK:       Symbol {9; CHECK:         Name: f10; CHECK-NEXT:    Value:11; CHECK-NEXT:    Size:12; CHECK-NEXT:    Binding: Local13; CHECK-NEXT:    Type: Function14; CHECK-NEXT:    Other15; CHECK-NOT:     Seciton16; CHECK:         Section: .text17; 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 024}25define linkonce_odr hidden void @f() {26  ret void27}28