summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/store-empty-member.ll
blob: 95d3bee98a5879cdc1e69d61a61bad649fe7f34a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc < %s -mtriple=i686-- | 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
}