brintos

brintos / llvm-project-archived public Read only

0
0
Text · 741 B · 9206233 Raw
28 lines · plain
1; RUN: llvm-as %s -o %t.o2; RUN: llvm-as %p/Inputs/visibility.ll -o %t2.o3 4; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \5; RUN:    -m elf_x86_64 \6; RUN:    --plugin-opt=save-temps \7; RUN:    -shared %t.o %t2.o -o %t.so8; RUN: llvm-readobj --symbols %t.so | FileCheck %s9; RUN: llvm-dis %t.so.0.2.internalize.bc -o - | FileCheck --check-prefix=IR %s10 11; CHECK:      Name: foo12; CHECK-NEXT: Value:13; CHECK-NEXT: Size:14; CHECK-NEXT: Binding: Global15; CHECK-NEXT: Type: Function16; CHECK-NEXT: Other [17; CHECK-NEXT:   STV_PROTECTED18; CHECK-NEXT: ]19 20; IR: define dso_local void @foo21 22target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"23target triple = "x86_64-unknown-linux-gnu"24 25define weak protected void @foo() {26  ret void27}28