skia2/tests/sksl/runtime_errors/IllegalStatements.skvm
Ethan Nicholas cb13c892af Added range highlighting to SkSL error reports
SkSL errors now identify the specific range of code they are describing,
rather than just the line number.

Change-Id: Ifabb3148476f9b4cd8e532f23e5b38e1cf33a87e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/528039
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
2022-04-07 13:29:48 +00:00

13 lines
458 B
Plaintext

### Compilation failed:
error: 3: discard statement is only permitted in fragment shaders
void discard_stmt() { discard; }
^^^^^^^
error: 5: do-while loops are not supported
int do_loop(int x) { do { x++; } while(x < 1); return x; }
^^^^^^^^^^^^^^^^^^^^^^^^^
error: 7: while loops are not supported
int while_loop(int x) { while (x < 1) { x++; } return x; }
^^^^^^^^^^^^^^^^^^^^^^
3 errors