summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/linker-private.ll
blob: ecea34235df05f66402e8ce99927392da3dfbb84 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck --check-prefix=ELF %s
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck --check-prefix=MACHO %s

@foo = linker_private global i32 42
;ELF: {{^}}.Lfoo:
;MACHO: {{^}}l_foo:

define i32* @f() {
  ret i32* @foo
}