dawn-cmake/test/switch-must-have-exactly-on...

14 lines
208 B
WebGPU Shading Language
Raw Normal View History

# v-0008: line 6: switch statement must have exactly one default clause
[[stage(vertex)]]
fn main() -> void {
var a: i32 = 2;
switch (a) {
case 2: {}
default: {}
default: {}
}
return;
}