]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/functions-as-params.qc
Only optimize (a - (-b)) into (a + b) when the unary operand is a negation. This...
[xonotic/gmqcc.git] / tests / functions-as-params.qc
1 string() getter = {
2     return "correct";
3 };
4
5 void(string() f) printer = {
6     print(f(), "\n");
7 };
8
9 void() main = {
10     printer(getter);
11 };