skia2/tests/sksl/errors/Unreachable.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

8 lines
392 B
Plaintext

void return_after_return() { return; return; }
void call_after_return() { return; call_after_return(); }
void code_after_continue() { for (;;) { continue; int x = 1; } }
void code_after_if_else_both_sided_exit() { if (true) return; else discard; return; }
// Not detected today
void code_after_infinite_loop() { for (;;) {} return; }