From 10c4d2e76af284903c7552a05ad757c2a608b803 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sun, 10 Mar 2024 21:02:36 -0700 Subject: Fix crash when trying to constant fold non-existent call. (#3728) --- tests/bugs/gh-3727.slang | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/bugs/gh-3727.slang (limited to 'tests') 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 -- cgit v1.2.3