mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-10 17:07:06 +00:00
d2bf432b2b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145171 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
330 B
LLVM
15 lines
330 B
LLVM
; RUN: llc < %s -march=x86 | FileCheck %s
|
|
|
|
; Don't crash on an empty struct member.
|
|
|
|
; CHECK: movl $2, 4(%esp)
|
|
; CHECK: movl $1, (%esp)
|
|
|
|
%testType = type {i32, [0 x i32], i32}
|
|
|
|
define void @foo() nounwind {
|
|
%1 = alloca %testType
|
|
store volatile %testType {i32 1, [0 x i32] zeroinitializer, i32 2}, %testType* %1
|
|
ret void
|
|
}
|