summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/gh-3808.slang22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs/gh-3808.slang b/tests/bugs/gh-3808.slang
new file mode 100644
index 000000000..088a41985
--- /dev/null
+++ b/tests/bugs/gh-3808.slang
@@ -0,0 +1,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()
+{
+
+} \ No newline at end of file