summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-02-28 00:57:56 -0800
committerGitHub <noreply@github.com>2025-02-28 08:57:56 +0000
commitceb3af59f797ec60249debd614db13dd6902de12 (patch)
tree2c9f3f34bca2fe94d075dd60bcad4286d50d1b95 /tests/bugs
parenta09d554721ecf0c6d967d5f55b3416e3284e71f2 (diff)
Fix member lookup in left hand side of `where` clause. (#6490)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/gh-6488-where-lookup.slang11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/bugs/gh-6488-where-lookup.slang b/tests/bugs/gh-6488-where-lookup.slang
new file mode 100644
index 000000000..118a69bbe
--- /dev/null
+++ b/tests/bugs/gh-6488-where-lookup.slang
@@ -0,0 +1,11 @@
+//TEST:SIMPLE(filecheck=CHECK): -target spirv
+
+// CHECK: OpEntryPoint
+
+interface IRealArray<T : __BuiltinFloatingPointType, int D> {}
+extension<T : __BuiltinFloatingPointType, int D> vector<T, D> : IRealArray<T, D> where T.Differential : __BuiltinFloatingPointType { }
+
+
+[numthreads(1,1,1)]
+void main()
+{} \ No newline at end of file