bolt/deps/llvm-18.1.8/llvm/test/CodeGen/Generic/2010-ZeroSizedArg.ll

20 lines
336 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: llc < %s
; PR4975
; NVPTX does not support zero sized type arg
; UNSUPPORTED: target=nvptx{{.*}}
%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
store %0 %0, ptr %arg0, align 1
ret void
}
declare i32 @printf(ptr, ...)