1 ; RUN: llvm-link %s %p/Inputs/visibility.ll -S | FileCheck %s
2 ; RUN: llvm-link %p/Inputs/visibility.ll %s -S | FileCheck %s
4 ; The values in this file are strong, the ones in Inputs/visibility.ll are weak,
5 ; but we should still get the visibility from them.
11 ; CHECK-DAG: @v1 = hidden global i32 0
14 ; CHECK-DAG: @v2 = protected global i32 0
17 ; CHECK-DAG: @v3 = hidden global i32 0
18 @v3 = protected global i32 0
20 ; CHECK-DAG: @v4 = hidden global i32 1, comdat($c1)
21 @v4 = global i32 1, comdat($c1)
24 ; CHECK: @a1 = hidden alias i32, i32* @v1
25 @a1 = alias i32, i32* @v1
27 ; CHECK: @a2 = protected alias i32, i32* @v2
28 @a2 = alias i32, i32* @v2
30 ; CHECK: @a3 = hidden alias i32, i32* @v3
31 @a3 = protected alias i32, i32* @v3
35 ; CHECK: define hidden void @f1()
41 ; CHECK: define protected void @f2()
47 ; CHECK: define hidden void @f3()
48 define protected void @f3() {