1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/CodeGen/X86/store-empty-member.ll
2009-09-08 23:54:48 +00:00

15 lines
330 B
LLVM

; 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
volatile store %testType {i32 1, [0 x i32] zeroinitializer, i32 2}, %testType* %1
ret void
}