android13/external/skia/resources/sksl/errors/SwitchWithContinueInside.sksl

16 lines
425 B
Plaintext

uniform int value;
void main() {
while (true) switch (value) { default: continue; }
for (;;) switch (value) { case 5: continue; }
// Static switches are flattened out so they should not generate an error.
while (true) @switch (0) { default: continue; }
for (;;) @switch (5) { case 5: continue; }
}
/*%%*
continue statement cannot be used in a switch
continue statement cannot be used in a switch
*%%*/