Skip to content

Commit

Permalink
[WGSL] Fix incorrect for-loop test
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=261758
rdar://115735593

Reviewed by Dan Glastonbury.

This is a small follow-up from 268078@main: I fixed the for-loop scoping, but
missed that a test that was relying on the incorrect behavior started failing.

* Source/WebGPU/WGSL/tests/valid/for.wgsl:

Canonical link: https://commits.webkit.org/268175@main
  • Loading branch information
tadeuzagallo authored and djg committed Sep 20, 2023
1 parent 78482a0 commit c1bff16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/WebGPU/WGSL/tests/valid/for.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ fn testForStatement() {
for (var i = -1; i <= 1; i++) {
}

var i = 0;
for (i++; i <= 0; i--) {
}
}

0 comments on commit c1bff16

Please sign in to comment.