2 ; RUN: llvm-as %s -o %t1.o
3 ; RUN: llvm-mc -triple=x86_64-pc-linux %p/Inputs/visibility.s -o %t2.o -filetype=obj
4 ; RUN: ld.lld %t1.o %t2.o -o %t.so -shared -save-temps
5 ; RUN: llvm-dis < %t.so.0.2.internalize.bc | FileCheck --check-prefix=IR %s
6 ; RUN: llvm-readobj --symbols %t.so | FileCheck %s
11 ; CHECK-NEXT: Binding: Local
12 ; CHECK-NEXT: Type: None
13 ; CHECK-NEXT: Other [ (0x2)
14 ; CHECK-NEXT: STV_HIDDEN
16 ; CHECK-NEXT: Section: .data
21 ; CHECK-NEXT: Binding: Local
22 ; CHECK-NEXT: Type: None
23 ; CHECK-NEXT: Other [ (0x2)
24 ; CHECK-NEXT: STV_HIDDEN
26 ; 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 declare hidden void @g()
32 ; IR: declare hidden void @g()
38 @a = weak hidden global i32 42