reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
; RUN: llvm-dis < %s.bc | FileCheck %s
; RUN: verify-uselistorder < %s.bc

; 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, internal i32* @global
; CHECK: @default.internal.alias = internal alias i32, i32* @global

@hidden.internal.alias = hidden alias internal i32, internal i32* @global
; CHECK: @hidden.internal.alias = internal alias i32, i32* @global

@protected.internal.alias = protected alias internal i32, internal i32* @global
; CHECK: @protected.internal.alias = internal alias i32, i32* @global

@default.private.alias = alias private i32, private i32* @global
; CHECK: @default.private.alias = private alias i32, i32* @global

@hidden.private.alias = hidden alias private i32, private i32* @global
; CHECK: @hidden.private.alias = private alias i32, i32* @global

@protected.private.alias = protected alias private i32, private i32* @global
; CHECK: @protected.private.alias = private alias i32, i32* @global

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
}