From a534b0f7bf0248bf90afe97110a34777e972f325 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 27 Jun 2008 03:10:24 +0000 Subject: when linking globals, make sure to preserve the address space of the global. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52810 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Linker/2008-06-26-AddressSpace.ll | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Linker/2008-06-26-AddressSpace.ll (limited to 'test/Linker') diff --git a/test/Linker/2008-06-26-AddressSpace.ll b/test/Linker/2008-06-26-AddressSpace.ll new file mode 100644 index 0000000..ee47509 --- /dev/null +++ b/test/Linker/2008-06-26-AddressSpace.ll @@ -0,0 +1,9 @@ +; Test linking two functions with different prototypes and two globals +; in different modules. +; RUN: llvm-as %s -o %t.foo1.bc -f +; RUN: echo | llvm-as -o %t.foo2.bc -f +; RUN: llvm-link %t.foo2.bc %t.foo1.bc | llvm-dis | grep {addrspace(2)} +; RUN: llvm-link %t.foo1.bc %t.foo2.bc | llvm-dis | grep {addrspace(2)} +; rdar://6038021 + +@G = global i32 256 addrspace(2) -- cgit v1.1