From a879819918f79b770049ddc7149f094f2debc25f Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 12 Jun 2009 05:20:12 +0000 Subject: Don't remove aggregate-typed module level constants before encoding functions since functions may contain aggregate constants too. llvm-svn: 73220 --- llvm/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 llvm/test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll (limited to 'llvm/test/Bitcode') 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 +} -- cgit v1.2.3