Skip to content

Commit 9504252

Browse files
authored
Add validation test for semicolon before break-if. (#4481)
Add a test that an empty `;` line is handled correctly before a `break-if` in a `continuing` statement.
1 parent d863101 commit 9504252

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/webgpu/shader/validation/statement/continuing.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ const kTests = {
163163
src: 'loop { if a == 4 { break; } continuing { for(;a < 4;) { return vec4f(2); } } }',
164164
pass: false,
165165
},
166+
continuing_semicolon_break_if: {
167+
src: 'loop { continuing { ; break if (true); } }',
168+
pass: true,
169+
},
166170
};
167171

168172
g.test('placement')

0 commit comments

Comments
 (0)