skia2/resources/sksl/runtime_errors/LoopExpressionErrors.rts
Brian Osman 552fcb9a1b Remove flexible runtime effects entirely
All internal usage has migrated to MakeFor..., this removes the old
program kind, and updates some tests.

Bug: skia:11813
Change-Id: I56733b071270e1ae3fab5d851e23acf6c02e3361
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/402536
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2021-04-29 16:02:27 +00:00

14 lines
498 B
Plaintext

// Expect 7 errors
void no_expression() { for (int i = 0; i < 1;) {} }
void expression_equals() { for (int i = 0; i < 1; i = 1) {} }
void expression_equal_plus() { for (int i = 0; i < 1; i = i + 1) {} }
void expression_times_eq() { for (int i = 1; i < 2; i *= 2) {} }
void expression_bad_unary() { for (int i = 0; i < 1; -i) {} }
uniform int u;
void expression_uniform_val() { for (int i = 0; i < 1; i += u) {} }
void expression_param_val(int p) { for (int i = 0; i < 1; i += p) {} }