summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/NVPTX/empty-type.ll
blob: 7e84f109cf8b1f9915203ba05f922f801fc11392 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: not --crash llc < %s -mtriple=nvptx -mcpu=sm_20 2>&1 | FileCheck %s

%struct.A = type { [0 x float] }
%struct.B = type { i32, i32 }

; CHECK: ERROR: Empty parameter types are not supported
define void @kernel(%struct.A %a, %struct.B %b) {
entry:
  ret void
}