diff options
Diffstat (limited to 'tests/bugs')
| -rw-r--r-- | tests/bugs/cyclic-type-2.slang | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs/cyclic-type-2.slang b/tests/bugs/cyclic-type-2.slang new file mode 100644 index 000000000..b7e2aa448 --- /dev/null +++ b/tests/bugs/cyclic-type-2.slang @@ -0,0 +1,24 @@ + +//TEST:SIMPLE(filecheck=CHECK):-target spirv -emit-spirv-directly + +// CHECK: error 41001: + +interface IFoo {} +struct TA<T:IFoo> : IFoo +{ + TB<T> tb; +} + +struct TB<T:IFoo> +{ + TA<T> ta[2]; +} + +struct TC : IFoo {} + +[numthreads(1,1,1)] +void main() +{ + TA<TC> ta; + ta.tb.ta[0] = ta; +}
\ No newline at end of file |
