diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/diagnostics/recursive-type.slang | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/diagnostics/recursive-type.slang b/tests/diagnostics/recursive-type.slang new file mode 100644 index 000000000..90f49aa86 --- /dev/null +++ b/tests/diagnostics/recursive-type.slang @@ -0,0 +1,14 @@ +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):-target spirv + +// CHECK: error 41001: + +struct Outer { + Outer next; // non-pointer + int y; +}; +RWStructuredBuffer<Outer> Buf; + +[numthreads(1,1,1)] +void csmain() { + Buf[0].y = 0; +}
\ No newline at end of file |
