1// Expect 9 errors 2 3void no_condition() { for (int i = 0;;i++) {} } 4 5void unary_cond_op() { for (int i = 0; !(i > 1); ++i) {} } 6void implict_cond_op() { for (int i = 1; bool(i); --i) {} } 7void complex_cond_op() { for (int i = 0; i < 1 && i < 2; ++i) {} } 8 9void cond_wrong_var() { int j = 0; for (int i = 0; j < 1; ++i) {} } 10void cond_wrong_side() { for (int i = 0; 1 > i; ++i) {} } 11void cond_index_cast() { for (int i = 0; float(i) < 1.5; ++i) {} } 12 13uniform int u; 14 15void cond_uniform_val() { for (int i = 0; i < u; ++i) {} } 16void cond_param_val(int p) { for (int i = 0; i < p; ++i) {} } 17