blob: 98c1a9904d4eb955761b194d9619d5a272f62440 [file] [log] [blame]
Dan Gohman1b9f83a2009-09-08 01:44:02 +00001; RUN: llvm-as < %s | llc -march=x86 | FileCheck %s
2
3; Don't crash on an empty struct member.
4
5; CHECK: movl $2, 4(%esp)
6; CHECK: movl $1, (%esp)
7
8%testType = type {i32, [0 x i32], i32}
9
10define void @foo() nounwind {
11 %1 = alloca %testType
12 volatile store %testType {i32 1, [0 x i32] zeroinitializer, i32 2}, %testType* %1
13 ret void
14}