7 for (unsigned int i = 0; i < 10; i++);
9 for (int j = 0; ; j++); // { dg-error "missing controlling predicate" }
11 for (int k = 0; k == 1; k++); // { dg-error "invalid controlling predicate" }
13 for (int l = 0; l < 10; ); // { dg-error "missing increment expression" }
15 for (int m = 0; m < 10; m *= 3); // { dg-error "invalid increment expression" }
17 for (T n = 0; ; n++); // { dg-error "missing controlling predicate" }
19 for (T o = 0; o == 1; o++); // Error here is emitted only during
22 for (T p = 0; p < 10; ); // { dg-error "missing increment expression" }
24 for (T q = 0; q < 10; q *= 3); // Error here is emitted only during
31 for (int m = 0; m < 10; m *= 3); // { dg-error "invalid increment expression" }