• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1### Compilation failed:
2
3error: 3: missing condition
4void no_condition() { for (int i = 0;;i++) {} }
5                                     ^
6error: 5: invalid condition
7void unary_cond_op()   { for (int i = 0; !(i > 1); ++i) {} }
8                                         ^^^^^^^^
9error: 6: invalid condition
10void implict_cond_op() { for (int i = 1; bool(i); --i) {} }
11                                         ^^^^^^^
12error: 7: expected loop index on left hand side of condition
13void complex_cond_op() { for (int i = 0; i < 1 && i < 2; ++i) {} }
14                                         ^^^^^^^^^^^^^^
15error: 9: expected loop index on left hand side of condition
16void cond_wrong_var()  { int j = 0; for (int i = 0; j < 1; ++i) {} }
17                                                    ^^^^^
18error: 10: expected loop index on left hand side of condition
19void cond_wrong_side() { for (int i = 0; 1 > i; ++i) {} }
20                                         ^^^^^
21error: 11: expected loop index on left hand side of condition
22void cond_index_cast() { for (int i = 0; float(i) < 1.5; ++i) {} }
23                                         ^^^^^^^^^^^^^^
24error: 15: loop index must be compared with a constant expression
25void cond_uniform_val()    { for (int i = 0; i < u; ++i) {} }
26                                             ^^^^^
27error: 16: loop index must be compared with a constant expression
28void cond_param_val(int p) { for (int i = 0; i < p; ++i) {} }
29                                             ^^^^^
309 errors
31