summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-03-10 21:02:36 -0700
committerGitHub <noreply@github.com>2024-03-10 21:02:36 -0700
commit10c4d2e76af284903c7552a05ad757c2a608b803 (patch)
tree444afffb3d81403c653a54a9c5f45e5d9409522a /tests
parent5074ee7c8a7f154273ed26815a8018df27dc03bb (diff)
Fix crash when trying to constant fold non-existent call. (#3728)
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/gh-3727.slang10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/bugs/gh-3727.slang b/tests/bugs/gh-3727.slang
new file mode 100644
index 000000000..89480d146
--- /dev/null
+++ b/tests/bugs/gh-3727.slang
@@ -0,0 +1,10 @@
+//TEST:SIMPLE(filecheck=CHECK): -target spirv -stage compute -entry main
+
+// CHECK: undefined identifier
+
+[shader("compute")]
+[numthreads(1, 1, 1)]
+void main(uint3 dtid : SV_DispatchThreadID)
+{
+ const uint index = does_not_exist();
+} \ No newline at end of file