summaryrefslogtreecommitdiffstats
path: root/tests/bugs/cyclic-type.slang
blob: 49591fbe6b0505e8de1d77bf3f81f3a05709fa7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//TEST:SIMPLE(filecheck=CHECK):-target spirv -emit-spirv-directly

// CHECK: error 41001:

struct TA
{
    TB tb;
}

struct TB
{
    TA ta[2];
}

[numthreads(1,1,1)]
void main()
{
    TA ta;
    ta.tb.ta[0] = ta;
}