blob: 37f86c60fae5f22ce458ddf4f5904be18bcba0a6 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 | FileCheck %s
Dan Gohman1b9f83a2009-09-08 01:44:02 +00002
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}