llvm/test/Linker/lto-attributes.ll
Rafael Espindola 7fd7effa37 Lazily link GlobalVariables and GlobalAliases.
We were already lazily linking functions, but all GlobalValues can be treated
uniformly for this.

The test updates are to ensure that a given GlobalValue is still linked in.

This fixes pr21494.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223681 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-08 18:45:16 +00:00

11 lines
318 B
LLVM

; RUN: llvm-link -S %s -o - | FileCheck %s
; CHECK-DAG: @foo = private externally_initialized global i8* null
@foo = private externally_initialized global i8* null
@useFoo = global i8** @foo
; CHECK-DAG: @array = appending global [7 x i8] c"abcdefg", align 1
@array = appending global [7 x i8] c"abcdefg", align 1