xref: /llvm-project/llvm/test/CodeGen/Generic/2010-ZeroSizedArg.ll (revision 0e8bd5a44a1bd8034706189b49a7a816c59304cd)
1; RUN: llc < %s
2; PR4975
3
4; NVPTX does not support zero sized type arg
5; UNSUPPORTED: target=nvptx{{.*}}
6
7%0 = type <{ [0 x i32] }>
8%union.T0 = type { }
9
10@.str = private constant [1 x i8] c" "
11
12define void @t(%0) nounwind {
13entry:
14  %arg0 = alloca %union.T0
15  store %0 %0, ptr %arg0, align 1
16  ret void
17}
18
19declare i32 @printf(ptr, ...)
20