blob: 6b14353b5eea321c3c050915b1a954a6118a0351 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv -entry main -stage compute
extern static const int size = 1;
struct V
{
// CHECK-DAG: ([[# @LINE+1]]): error 30070
int c[];
int b[size];
int a[];
}
struct Q
{
// CHECK-DAG: ([[# @LINE+1]]): error 30070
V v1;
V v2;
}
[numthreads(1,1,1)]
void main()
{
V v;
int i = 2;
}
|