mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
Don't remove aggregate-typed module level constants before encoding functions
since functions may contain aggregate constants too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
12
test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll
Normal file
12
test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll
Normal file
@@ -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
|
||||
}
|
Reference in New Issue
Block a user