2 ## Show that a symbol referenced from an object and defined in bitcode is
3 ## not internalized and is emitted in the output.
6 # RUN: split-file %s %t.dir
7 # RUN: llvm-mc %t.dir/obj.s -o %t.o -filetype=obj -triple=x86_64-pc-linux
8 # RUN: llvm-as %t.dir/bc.ll -o %t2.o
9 # RUN: ld.lld %t2.o %t.o -o %t.so -shared
10 # RUN: llvm-readobj --symbols %t.so | FileCheck %s
15 # CHECK-NEXT: Binding: Local
16 # CHECK-NEXT: Type: Function
18 # CHECK-NEXT: STV_HIDDEN
20 # CHECK-NEXT: Section: .text
28 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
29 target triple = "x86_64-unknown-linux-gnu"
31 define hidden void @foo() {