diff options
Diffstat (limited to 'tests/diagnostics/array-parameterblock-deeply-nested.slang')
| -rw-r--r-- | tests/diagnostics/array-parameterblock-deeply-nested.slang | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/diagnostics/array-parameterblock-deeply-nested.slang b/tests/diagnostics/array-parameterblock-deeply-nested.slang new file mode 100644 index 000000000..86dcf913b --- /dev/null +++ b/tests/diagnostics/array-parameterblock-deeply-nested.slang @@ -0,0 +1,20 @@ +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): + +// Test: Array of deeply nested struct containing ParameterBlock - should error + +struct DeeplyNested +{ + struct Inner + { + ParameterBlock<int> deepPB; + } + Inner inner; +} + +[numthreads(4, 1, 1)] +void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) +{ +} + +//CHECK: ([[# @LINE+1]]): error 30027 +uniform DeeplyNested arrayOfDeeplyNested[4];
\ No newline at end of file |
