• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Expect 7 errors
2
3void no_expression() { for (int i = 0; i < 1;) {} }
4
5void expression_equals()     { for (int i = 0; i < 1; i = 1) {} }
6void expression_equal_plus() { for (int i = 0; i < 1; i = i + 1) {} }
7void expression_times_eq()   { for (int i = 1; i < 2; i *= 2) {} }
8void expression_bad_unary()  { for (int i = 0; i < 1; -i) {} }
9
10uniform int u;
11
12void expression_uniform_val()    { for (int i = 0; i < 1; i += u) {} }
13void expression_param_val(int p) { for (int i = 0; i < 1; i += p) {} }
14