summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/visibility.ll
blob: be7fd96f2dd995eee1b3bb2a4262d41646f125b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llc -mtriple=x86_64-unknown-linux-gnu %s -o - | FileCheck %s

@zed = external hidden constant i32

define available_externally hidden void @baz() {
  ret void
}

define hidden void @foo() nounwind {
entry:
  call void @bar(i32* @zed)
  call void @baz()
  ret void
}

declare hidden void @bar(i32*)

;CHECK: .hidden	zed
;CHECK: .hidden	baz
;CHECK: .hidden	bar