summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-13 05:11:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-13 05:11:35 +0000
commit17c9169bbd335429ba9af5bf2637e92f79075abd (patch)
tree1aeebfe53d5af030ed116b2ef8cb15b862e77640 /test
parent525637575cedf7d760e64af6ab0deaf846ca3d11 (diff)
downloadllvm-17c9169bbd335429ba9af5bf2637e92f79075abd.tar.gz
llvm-17c9169bbd335429ba9af5bf2637e92f79075abd.tar.bz2
llvm-17c9169bbd335429ba9af5bf2637e92f79075abd.tar.xz
Copy dll storage in copyAttributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Linker/dllstorage-a.ll4
-rw-r--r--test/Linker/dllstorage-b.ll3
2 files changed, 7 insertions, 0 deletions
diff --git a/test/Linker/dllstorage-a.ll b/test/Linker/dllstorage-a.ll
new file mode 100644
index 0000000000..91b98184f8
--- /dev/null
+++ b/test/Linker/dllstorage-a.ll
@@ -0,0 +1,4 @@
+; RUN: llvm-link %s %p/dllstorage-b.ll -S -o - | FileCheck %s
+@foo = external global i32
+
+; CHECK: @foo = dllexport global i32 42
diff --git a/test/Linker/dllstorage-b.ll b/test/Linker/dllstorage-b.ll
new file mode 100644
index 0000000000..4c7dbcd19b
--- /dev/null
+++ b/test/Linker/dllstorage-b.ll
@@ -0,0 +1,3 @@
+; RUN: true
+
+@foo = dllexport global i32 42