diff options
Diffstat (limited to 'tests/diagnostics/array-of-unbounded-arrays.slang')
| -rw-r--r-- | tests/diagnostics/array-of-unbounded-arrays.slang | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/diagnostics/array-of-unbounded-arrays.slang b/tests/diagnostics/array-of-unbounded-arrays.slang new file mode 100644 index 000000000..0a5c42ce0 --- /dev/null +++ b/tests/diagnostics/array-of-unbounded-arrays.slang @@ -0,0 +1,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 +}
\ No newline at end of file |
