summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/gh-7293.slang15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/bugs/gh-7293.slang b/tests/bugs/gh-7293.slang
new file mode 100644
index 000000000..d5ca48248
--- /dev/null
+++ b/tests/bugs/gh-7293.slang
@@ -0,0 +1,15 @@
+//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
+
+[SpecializationConstant] const int MAX_ITERS = 0;
+
+RWStructuredBuffer<int> outputBuffer;
+
+[numthreads(1, 1, 1)]
+void computeMain(int3 dispatchThreadID: SV_DispatchThreadID)
+{
+ for (int i = 0; i < MAX_ITERS; i++) {
+ outputBuffer[i] = i;
+ }
+}
+
+// CHECK-NOT: 30505