summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/recursion.slang
blob: b5746820e5ad9b1b6af8349251d6209b0e5f364f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-directly

// CHECK: error 55201:

float test<let x : int>()
{
    return test<x>();
}

RWStructuredBuffer<float> outputBuffer;
[numthreads(1,1,1)]
void main()
{
    outputBuffer[0] = test<1>();
}