From a5065e398d2430c83e17ef9cbad6eae31d1efa8f Mon Sep 17 00:00:00 2001 From: James Price Date: Wed, 4 Sep 2024 13:57:26 -0400 Subject: [PATCH] wgsl: Add another phony assignment test case (#3925) This adds coverage for an issue hit by Tint in crbug.com/342650077. --- src/webgpu/shader/execution/statement/phony.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webgpu/shader/execution/statement/phony.spec.ts b/src/webgpu/shader/execution/statement/phony.spec.ts index 1f28d040f2d8..309d8848523d 100644 --- a/src/webgpu/shader/execution/statement/phony.spec.ts +++ b/src/webgpu/shader/execution/statement/phony.spec.ts @@ -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],