summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/2010-ZeroSizedArg.ll
blob: d9d83744781d17c0137e044b09dafaa7bc2a3998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llc < %s
; PR4975

%0 = type <{ [0 x i32] }>
%union.T0 = type { }

@.str = private constant [1 x i8] c" "

define void @t(%0) nounwind {
entry:
  %arg0 = alloca %union.T0
  %1 = bitcast %union.T0* %arg0 to %0*
  store %0 %0, %0* %1, align 1
  ret void
}

declare i32 @printf(i8*, ...)