mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-06 04:05:40 +00:00
It's surprising that the fuzzers didn't find this, but I've confirmed that at least one of the fuzzers will fail with this case. By adding a e2e test case, this will be used as a seed for the fuzzer corpus. Bug: tint:1321 Change-Id: Ibf4bfa50bf376ae4cba401dfc31a2498fa3b9eec Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/70982 Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
16 lines
189 B
HLSL
16 lines
189 B
HLSL
int foo() {
|
|
return 1;
|
|
}
|
|
|
|
void main() {
|
|
float arr[4] = (float[4])0;
|
|
const int a_save = foo();
|
|
{
|
|
for(; ; ) {
|
|
const float x = arr[a_save];
|
|
break;
|
|
}
|
|
}
|
|
return;
|
|
}
|