1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/Linker/lto-attributes.ll
Rafael Espindola be35802efc 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.

llvm-svn: 223681
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