-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WGSL] Fix failing tests after 266633@main
https://bugs.webkit.org/show_bug.cgi?id=260135 rdar://113843736 Reviewed by Dan Glastonbury. In 266633@main we made the parsing of variable declarations a little stricter, which caused some tests to (correctly) fail. This patch makes the minimal changes to get these tests passing again. * Source/WebGPU/WGSL/tests/valid/overload.wgsl: * Source/WebGPU/WGSL/tests/valid/scope.wgsl: Canonical link: https://commits.webkit.org/266899@main
- Loading branch information
1 parent
c6859d3
commit 58a7098
Showing
2 changed files
with
85 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
|
||
fn testScope() { | ||
{ | ||
let x : i32; | ||
let x : i32 = 0; | ||
} | ||
|
||
{ | ||
let x : f32; | ||
let x : f32 = 0; | ||
} | ||
} |