diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-07 16:31:41 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-07 16:31:41 +0000 |
commit | 0178d23ade9b549a91e3409dd15833ea8a451cb4 (patch) | |
tree | 479cd70876c93a9bae85d8395141c29e98b604d3 /test/Linker/ConstantGlobals.ll | |
parent | 7218e37dabb5cc8b3b61b08cbaf0da49da65a479 (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/ConstantGlobals.ll')
-rw-r--r-- | test/Linker/ConstantGlobals.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Linker/ConstantGlobals.ll b/test/Linker/ConstantGlobals.ll index 49f86a51bd7..58c0d711a07 100644 --- a/test/Linker/ConstantGlobals.ll +++ b/test/Linker/ConstantGlobals.ll @@ -6,3 +6,7 @@ ; CHECK-DAG: @Y = external global [1 x i32] @Y = external global [1 x i32] + +define [1 x i32]* @use-Y() { + ret [1 x i32] *@Y +} |