Skip to content

Commit

Permalink
wgsl: Add another phony assignment test case (#3925)
Browse files Browse the repository at this point in the history
This adds coverage for an issue hit by Tint in crbug.com/342650077.
  • Loading branch information
jrprice authored Sep 4, 2024
1 parent a358a6c commit a5065e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webgpu/shader/execution/statement/phony.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ const kTests = {
src: `_ = put(42i);`,
values: [42, 0],
},
call_in_subexpr: {
src: `_ = put(42i) + 1;`,
values: [42, 0],
},
nested_call: {
src: `_ = put(put(42)+1);`,
values: [42, 43, 0],
Expand Down

0 comments on commit a5065e3

Please sign in to comment.