diff options
Diffstat (limited to 'test/CodeGen/X86/linker-private.ll')
-rw-r--r-- | test/CodeGen/X86/linker-private.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/linker-private.ll b/test/CodeGen/X86/linker-private.ll new file mode 100644 index 0000000000..ecea34235d --- /dev/null +++ b/test/CodeGen/X86/linker-private.ll @@ -0,0 +1,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 +} |