Sign in
dawn
/
tint
/
ff267ca60e144afa928d4a2c204e0045e3f5f7d5
/
.
/
test
/
switch-fallthrough-must-not-be-last-stmt-of-last-clause.fail.wgsl
blob: 0867b62b2f12f785a54ada78939ef7897789b90e [
file
] [
log
] [
blame
]
# v-switch05: line 9: a fallthrough statement must not appear as the last statement in last clause
# of a switch
[[
stage
(
vertex
)]]
fn main
()
->
void
{
var
a
:
i32
=
-
2
;
switch
(
a
)
{
default
:
{
fallthrough
;
}
}
return
;
}