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