1// Expect 5 errors 2 3void loop_length_ok() { for (int i = 0; i < 128; i++) {} } // LEGAL: See kMaxUnrollableLoopLength 4void loop_too_long() { for (int i = 0; i < 129; i++) {} } 5void infinite_loop() { for (int i = 0; i < 1; i += 0) {} } 6 7void set(out int x) { x = 1; } 8void inc(inout int x) { x++; } 9 10void index_modified() { for (int i = 0; i < 2; i++) { i++; } } 11void index_out_param() { for (int i = 0; i < 1; i++) { set(i); } } 12void index_inout_param() { for (int i = 0; i < 1; i++) { inc(i); } } 13