Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gpuweb/cts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 85767fdb5f007169d5b606597647d0500e026ac5
Choose a base ref
..
head repository: gpuweb/cts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dbb53eb0388a75574d9ed136d99ed78280543070
Choose a head ref
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/webgpu/shader/validation/statement/statement_behavior.spec.ts
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@ const kValidStatements = {
while3: `while true { continue; break; }`,

switch1: `switch 1 { default { } }`,
swtich2: `switch 1 { case 1 { } default { } }`,
switch2: `switch 1 { case 1 { } default { } }`,
switch3: `switch 1 { default { break; } }`,
switch4: `switch 1 { default { } case 1 { break; } }`,

@@ -130,7 +130,9 @@ g.test('invalid_functions')
const kValidFunctions = {
empty: `fn foo() { }`,
next_return: `fn foo() { if true { return; } }`,
unreachable_code_after_return_with_value: `fn foo() -> bool { return false; _ = 0; }`,
no_final_return: `fn foo() -> bool { if true { return true; } else { return false; } }`,
no_final_return_unreachable_code: `fn foo() -> bool { if true { return true; } else { return false; } _ = 0; _ = 1; }`,
};

g.test('valid_functions')