dawn-cmake/test/switch-fallthrough-must-not-be-last-stmt-of-last-clause.fail.wgsl
dan sinclair 5f8126271d Remove EntryPoint.
This CL removes the EntryPoint node and transitions everything to the
stage decoration.

Change-Id: Ib2840155905c8fa60ff35870f0c4b6705efb73ff
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/28705
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: David Neto <dneto@google.com>
Reviewed-by: Sarah Mashayekhi <sarahmashay@google.com>
2020-09-22 14:53:03 +00:00

14 lines
242 B
WebGPU Shading Language

# 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;
}