1 ; RUN: llvm-dis < %s.bc | FileCheck %s
2 ; RUN: verify-uselistorder < %s.bc
4 ; local-linkage-default-visibility.3.4.ll.bc was generated by passing this file
5 ; to llvm-as-3.4. The test checks that LLVM upgrades visibility of symbols
6 ; with local linkage to default visibility.
8 @default.internal.var = internal global i32 0
9 ; CHECK: @default.internal.var = internal global i32 0
11 @hidden.internal.var = internal hidden global i32 0
12 ; CHECK: @hidden.internal.var = internal global i32 0
14 @protected.internal.var = internal protected global i32 0
15 ; CHECK: @protected.internal.var = internal global i32 0
17 @default.private.var = private global i32 0
18 ; CHECK: @default.private.var = private global i32 0
20 @hidden.private.var = private hidden global i32 0
21 ; CHECK: @hidden.private.var = private global i32 0
23 @protected.private.var = private protected global i32 0
24 ; CHECK: @protected.private.var = private global i32 0
26 @global = global i32 0
28 @default.internal.alias = alias internal i32, internal i32* @global
29 ; CHECK: @default.internal.alias = internal alias i32, ptr @global
31 @hidden.internal.alias = hidden alias internal i32, internal i32* @global
32 ; CHECK: @hidden.internal.alias = internal alias i32, ptr @global
34 @protected.internal.alias = protected alias internal i32, internal i32* @global
35 ; CHECK: @protected.internal.alias = internal alias i32, ptr @global
37 @default.private.alias = alias private i32, private i32* @global
38 ; CHECK: @default.private.alias = private alias i32, ptr @global
40 @hidden.private.alias = hidden alias private i32, private i32* @global
41 ; CHECK: @hidden.private.alias = private alias i32, ptr @global
43 @protected.private.alias = protected alias private i32, private i32* @global
44 ; CHECK: @protected.private.alias = private alias i32, ptr @global
46 define internal void @default.internal() {
47 ; CHECK: define internal void @default.internal
52 define internal hidden void @hidden.internal() {
53 ; CHECK: define internal void @hidden.internal
58 define internal protected void @protected.internal() {
59 ; CHECK: define internal void @protected.internal
64 define private void @default.private() {
65 ; CHECK: define private void @default.private
70 define private hidden void @hidden.private() {
71 ; CHECK: define private void @hidden.private
76 define private protected void @protected.private() {
77 ; CHECK: define private void @protected.private