summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/array-of-unbounded-arrays.slang
blob: 0a5c42ce0dba82e84c25363a2294ec0710f85554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Test that arrays of unbounded arrays are not allowed

//TEST:SIMPLE(filecheck=CHECK): -target spirv -allow-glsl -stage compute -entry computeMain

// Array of unbounded arrays - should error (unbounded arrays are NonAddressable)
//CHECK: ([[# @LINE+1]]): error 30027
int arrayOfUnbounded[3][];

[numthreads(1, 1, 1)]
void computeMain()
{
    // Empty - we're just testing the declaration
}