llvm-6502/test/Linker/unnamed-addr1-a.ll
Rafael Espindola c2a94da313 Keep unnamed_addr when linking.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123364 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-13 05:12:34 +00:00

12 lines
230 B
LLVM

; RUN: llvm-link %s %p/unnamed-addr1-b.ll -S -o - | FileCheck %s
@foo = external global i32
define i32 @bar() {
entry:
%tmp = load i32* @foo, align 4
ret i32 %tmp
}
; CHECK: @foo = common unnamed_addr global i32 0, align 4