bfc9be0f77
This will allow us to load these inputs for unit testing in `dm`. Change-Id: Id256ba7c30d3ec94b98048e47af44cf9efe580d5 Bug: skia:11009 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357282 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
13 lines
508 B
Plaintext
13 lines
508 B
Plaintext
// Expect 5 errors
|
|
|
|
void loop_length_ok() { for (int i = 0; i < 128; i++) {} } // LEGAL: See kMaxUnrollableLoopLength
|
|
void loop_too_long() { for (int i = 0; i < 129; i++) {} }
|
|
void infinite_loop() { for (int i = 0; i < 1; i += 0) {} }
|
|
|
|
void set(out int x) { x = 1; }
|
|
void inc(inout int x) { x++; }
|
|
|
|
void index_modified() { for (int i = 0; i < 2; i++) { i++; } }
|
|
void index_out_param() { for (int i = 0; i < 1; i++) { set(i); } }
|
|
void index_inout_param() { for (int i = 0; i < 1; i++) { inc(i); } }
|