2014-05-07 22:57:20 +00:00
|
|
|
; RUN: llvm-dis < %s.bc | FileCheck %s
|
2014-08-19 21:08:27 +00:00
|
|
|
; RUN: verify-uselistorder < %s.bc
|
2014-05-07 22:57:20 +00:00
|
|
|
|
|
|
|
; local-linkage-default-visibility.3.4.ll.bc was generated by passing this file
|
|
|
|
; to llvm-as-3.4. The test checks that LLVM upgrades visibility of symbols
|
|
|
|
; with local linkage to default visibility.
|
|
|
|
|
|
|
|
@default.internal.var = internal global i32 0
|
|
|
|
; CHECK: @default.internal.var = internal global i32 0
|
|
|
|
|
|
|
|
@hidden.internal.var = internal hidden global i32 0
|
|
|
|
; CHECK: @hidden.internal.var = internal global i32 0
|
|
|
|
|
|
|
|
@protected.internal.var = internal protected global i32 0
|
|
|
|
; CHECK: @protected.internal.var = internal global i32 0
|
|
|
|
|
|
|
|
@default.private.var = private global i32 0
|
|
|
|
; CHECK: @default.private.var = private global i32 0
|
|
|
|
|
|
|
|
@hidden.private.var = private hidden global i32 0
|
|
|
|
; CHECK: @hidden.private.var = private global i32 0
|
|
|
|
|
|
|
|
@protected.private.var = private protected global i32 0
|
|
|
|
; CHECK: @protected.private.var = private global i32 0
|
|
|
|
|
|
|
|
@global = global i32 0
|
|
|
|
|
|
|
|
@default.internal.alias = alias internal i32* @global
|
2014-07-30 22:51:54 +00:00
|
|
|
; CHECK: @default.internal.alias = internal alias i32* @global
|
2014-05-07 22:57:20 +00:00
|
|
|
|
|
|
|
@hidden.internal.alias = hidden alias internal i32* @global
|
2014-07-30 22:51:54 +00:00
|
|
|
; CHECK: @hidden.internal.alias = internal alias i32* @global
|
2014-05-07 22:57:20 +00:00
|
|
|
|
|
|
|
@protected.internal.alias = protected alias internal i32* @global
|
2014-07-30 22:51:54 +00:00
|
|
|
; CHECK: @protected.internal.alias = internal alias i32* @global
|
2014-05-07 22:57:20 +00:00
|
|
|
|
|
|
|
@default.private.alias = alias private i32* @global
|
2014-07-30 22:51:54 +00:00
|
|
|
; CHECK: @default.private.alias = private alias i32* @global
|
2014-05-07 22:57:20 +00:00
|
|
|
|
|
|
|
@hidden.private.alias = hidden alias private i32* @global
|
2014-07-30 22:51:54 +00:00
|
|
|
; CHECK: @hidden.private.alias = private alias i32* @global
|
2014-05-07 22:57:20 +00:00
|
|
|
|
|
|
|
@protected.private.alias = protected alias private i32* @global
|
2014-07-30 22:51:54 +00:00
|
|
|
; CHECK: @protected.private.alias = private alias i32* @global
|
2014-05-07 22:57:20 +00:00
|
|
|
|
|
|
|
define internal void @default.internal() {
|
|
|
|
; CHECK: define internal void @default.internal
|
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define internal hidden void @hidden.internal() {
|
|
|
|
; CHECK: define internal void @hidden.internal
|
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define internal protected void @protected.internal() {
|
|
|
|
; CHECK: define internal void @protected.internal
|
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define private void @default.private() {
|
|
|
|
; CHECK: define private void @default.private
|
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define private hidden void @hidden.private() {
|
|
|
|
; CHECK: define private void @hidden.private
|
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define private protected void @protected.private() {
|
|
|
|
; CHECK: define private void @protected.private
|
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|