summaryrefslogtreecommitdiffstats
path: root/tests/bugs/static-const-init-expr-with-interface-1.slang
blob: bab63c167b2b489336e04e4fd0e3efe1eb535b7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//TEST:LANG_SERVER(filecheck=CHECK):

//HOVER:7,25
//CHECK:Bug.badVar = 0
interface Bug
{
    static const int badVar = 0;
}

RWStructuredBuffer<int> b;
[numthreads(1, 1, 1)]
void computeMain(uint3 dispatchThreadID: SV_DispatchThreadID)
{
    b[0] = Bug::badVar;
}