2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -march=x86 | FileCheck %s
|
2009-09-08 09:44:02 +08:00
|
|
|
|
|
|
|
; 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
|
2011-11-27 14:54:59 +08:00
|
|
|
store volatile %testType {i32 1, [0 x i32] zeroinitializer, i32 2}, %testType* %1
|
2009-09-08 09:44:02 +08:00
|
|
|
ret void
|
|
|
|
}
|