ccd85d5835
Bug: skia:13173 Change-Id: Ifbcce77605dd781563568293fc501dfa31f143da Reviewed-on: https://skia-review.googlesource.com/c/skia/+/528706 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
### Compilation failed:
|
|
|
|
error: 3: missing loop expression
|
|
void no_expression() { for (int i = 0; i < 1;) {} }
|
|
^
|
|
error: 5: invalid operator in loop expression
|
|
void expression_equals() { for (int i = 0; i < 1; i = 1) {} }
|
|
^^^^^
|
|
error: 6: loop index must be modified by a constant expression
|
|
void expression_equal_plus() { for (int i = 0; i < 1; i = i + 1) {} }
|
|
^^^^^^^^^
|
|
error: 7: invalid operator in loop expression
|
|
void expression_times_eq() { for (int i = 1; i < 2; i *= 2) {} }
|
|
^^^^^^
|
|
error: 8: invalid operator in loop expression
|
|
void expression_bad_unary() { for (int i = 0; i < 1; -i) {} }
|
|
^^
|
|
error: 12: loop index must be modified by a constant expression
|
|
void expression_uniform_val() { for (int i = 0; i < 1; i += u) {} }
|
|
^^^^^^
|
|
error: 13: loop index must be modified by a constant expression
|
|
void expression_param_val(int p) { for (int i = 0; i < 1; i += p) {} }
|
|
^^^^^^
|
|
7 errors
|