summaryrefslogtreecommitdiff
path: root/test/Linker/opaque.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-12-07 16:31:41 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-12-07 16:31:41 +0000
commit0178d23ade9b549a91e3409dd15833ea8a451cb4 (patch)
tree479cd70876c93a9bae85d8395141c29e98b604d3 /test/Linker/opaque.ll
parent7218e37dabb5cc8b3b61b08cbaf0da49da65a479 (diff)
Link declaration lazily.
We already linked available_externally and linkonce lazily, this just adds declarations to the list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker/opaque.ll')
-rw-r--r--test/Linker/opaque.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Linker/opaque.ll b/test/Linker/opaque.ll
index 4f3f398f8f1..6fd1ae90d4f 100644
--- a/test/Linker/opaque.ll
+++ b/test/Linker/opaque.ll
@@ -19,3 +19,7 @@
%C = type { %A }
@g1 = external global %B
+
+define %B* @use_g1() {
+ ret %B* @g1
+}