summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-06-12 05:20:12 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-06-12 05:20:12 +0000
commita879819918f79b770049ddc7149f094f2debc25f (patch)
tree8a28176686e8cd125f7a79fe22c599d98377b933 /llvm/test/Bitcode
parente68347bde5492e0a5fe92ebf20c137de8b8d3cff (diff)
downloadbcm5719-llvm-a879819918f79b770049ddc7149f094f2debc25f.tar.gz
bcm5719-llvm-a879819918f79b770049ddc7149f094f2debc25f.zip
Don't remove aggregate-typed module level constants before encoding functions
since functions may contain aggregate constants too. llvm-svn: 73220
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll b/llvm/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll
new file mode 100644
index 00000000000..415f88e1637
--- /dev/null
+++ b/llvm/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llvm-dis -disable-output
+; PR4373
+
+@foo = weak global { i32 } zeroinitializer
+@bar = weak global i32 0
+
+define void @test() {
+entry:
+ store { i32 } zeroinitializer, { i32 }* @foo
+ store i32 1, i32* @bar
+ ret void
+}
OpenPOWER on IntegriCloud