summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/no-type-conformance.slang
blob: ada4f663a75e082636daddcb96f7db5de6664fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//DIAGNOSTIC_TEST:COMMAND_LINE_SIMPLE:-target hlsl -entry computeMain -stage compute -o no-type-conformance.hlsl
// no type conformance linked

interface IFoo
{
	float get();
}

void foo()
{
	IFoo obj;
	obj.get();
}

[numthreads(1, 1, 1)]
void computeMain(uint3       dispatchThreadID : SV_DispatchThreadID)
{
    foo();
}