blob: 088a4198516277bd60fd4856820b5341fcf1143a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-directly
// CHECK: cyclic reference
interface IFoo { void ff(); }
interface I : IFoo,K { void doThing(); } // ': I' is the problem.
interface J : K {}
interface K : I { void doThingK(); }
struct S<T: I> {
T t;
}
void t<T : I>(T j)
{
j.doThing();
}
[shader("compute")]
[numthreads(1,1,1)]
void main()
{
}
|