]> de.git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/break.qc
ast_expression: params -> type_params
[xonotic/gmqcc.git] / tests / break.qc
1 void test(float brkat, float contat) {
2     float i;
3
4     for (i = 0; i < 10; i += 1) {
5         if (i == contat) {
6             print("ct ");
7             continue;
8         }
9         print(ftos(i), " ");
10         if (i == brkat) {
11             print("brk ");
12             break;
13         }
14     }
15     print("end\n");
16 }
17
18 void main() {
19     test(-1, -1);
20     test( 3, -1);
21     test(-1,  3);
22     test( 5,  2);
23 }