view test/CodeGen/X86/store-empty-member.ll @ 33:e4204d083e25

LLVM 3.5
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 14:32:10 +0900
parents 95c75e76d11b
children 803732b1fca8
line wrap: on
line source

; 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
}