summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/gh-1374.slang
blob: b1bb04253a0a0c7a083dc694aadcea7f7fde8083 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// gh-1374.slang

// Test a `static` variable wwith a definition that refers to itself

//DIAGNOSTIC_TEST:REFLECTION:-stage compute -entry main -target hlsl

struct S
{
	static const int kVal = kVal;

	static const int kInf = kInf + 1;

	static const int kA = kB;
	static const int kB = kA;
}

[numthreads(1, 1, 1)]
void main(
    uint3 dispatchThreadID : SV_DispatchThreadID)
{
}