summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/lto-attributes.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-12-08 18:45:16 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-12-08 18:45:16 +0000
commitef23711eeefbde2952e71071de329db63ff48297 (patch)
tree598a06ad3e41545e84d0e78ac0f68a9f4d750c85 /llvm/test/Linker/lto-attributes.ll
parentcc46cd8eecca578d0166cab883f348d05898e541 (diff)
downloadbcm5719-llvm-ef23711eeefbde2952e71071de329db63ff48297.tar.gz
bcm5719-llvm-ef23711eeefbde2952e71071de329db63ff48297.zip
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
Diffstat (limited to 'llvm/test/Linker/lto-attributes.ll')
-rw-r--r--llvm/test/Linker/lto-attributes.ll7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/test/Linker/lto-attributes.ll b/llvm/test/Linker/lto-attributes.ll
index 0dc78ad159b..e55029a0e2b 100644
--- a/llvm/test/Linker/lto-attributes.ll
+++ b/llvm/test/Linker/lto-attributes.ll
@@ -1,7 +1,10 @@
; RUN: llvm-link -S %s -o - | FileCheck %s
-; CHECK: @foo = private externally_initialized global i8* null
+; CHECK-DAG: @foo = private externally_initialized global i8* null
@foo = private externally_initialized global i8* null
-; CHECK: @array = appending global [7 x i8] c"abcdefg", align 1
+
+@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
OpenPOWER on IntegriCloud