summaryrefslogtreecommitdiff
path: root/test/Bitcode
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-05-17 21:00:22 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-05-17 21:00:22 +0000
commite7a6c2f1dfca147cdedb9683f7193882b548753d (patch)
treefe794197fc41adfe1cdbc404047e99968443a7ca /test/Bitcode
parentfbd8cc09269d6c7c5ca615a4757e41899a18283f (diff)
downloadllvm-e7a6c2f1dfca147cdedb9683f7193882b548753d.tar.gz
llvm-e7a6c2f1dfca147cdedb9683f7193882b548753d.tar.bz2
llvm-e7a6c2f1dfca147cdedb9683f7193882b548753d.tar.xz
Handle ConstantAggregateZero when upgrading global_ctors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode')
-rw-r--r--test/Bitcode/upgrade-global-ctors.ll3
-rw-r--r--test/Bitcode/upgrade-global-ctors.ll.bcbin0 -> 316 bytes
2 files changed, 3 insertions, 0 deletions
diff --git a/test/Bitcode/upgrade-global-ctors.ll b/test/Bitcode/upgrade-global-ctors.ll
new file mode 100644
index 0000000000..bd253a8162
--- /dev/null
+++ b/test/Bitcode/upgrade-global-ctors.ll
@@ -0,0 +1,3 @@
+; RUN: llvm-dis < %s.bc| FileCheck %s
+
+; CHECK: @llvm.global_ctors = appending global [0 x { i32, void ()*, i8* }] zeroinitializer
diff --git a/test/Bitcode/upgrade-global-ctors.ll.bc b/test/Bitcode/upgrade-global-ctors.ll.bc
new file mode 100644
index 0000000000..927fd91867
--- /dev/null
+++ b/test/Bitcode/upgrade-global-ctors.ll.bc
Binary files differ