1 ; RUN: llvm-as %s -o %t.o
2 ; RUN: llvm-as %p/Inputs/visibility.ll -o %t2.o
4 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
6 ; RUN: --plugin-opt=save-temps \
7 ; RUN: -shared %t.o %t2.o -o %t.so
8 ; RUN: llvm-readobj --symbols %t.so | FileCheck %s
9 ; RUN: llvm-dis %t.so.0.2.internalize.bc -o - | FileCheck --check-prefix=IR %s
14 ; CHECK-NEXT: Binding: Global
15 ; CHECK-NEXT: Type: Function
17 ; CHECK-NEXT: STV_PROTECTED
20 ; IR: define dso_local void @foo
22 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
23 target triple = "x86_64-unknown-linux-gnu"
25 define weak protected void @foo() {