skia2/tests/sksl/errors/StaticSwitchConditionalBreak.sksl
John Stiles 6798e5d0d1 Migrate SkSL error tests to golden outputs.
Change-Id: Ic8f4730d035981c32b4ddb48e5e919b0396b6d93
Bug: skia:10694
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317578
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2020-09-18 13:46:17 +00:00

11 lines
234 B
Plaintext

void conditional_break_in_static_switch() {
int x = 1;
@switch (x) {
case 1:
sk_FragColor = half4(1);
if (sqrt(0) < sqrt(1)) break;
default:
sk_FragColor = half4(0);
}
}