]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/mul_vf.qc
testcase for mul_vf/fv
[xonotic/gmqcc.git] / tests / mul_vf.qc
1 void print(...) = #1;
2 string vtos(vector) = #5;
3
4 // getter to work around future -O
5 vector get(vector v) {
6     return v;
7 }
8
9 void test(vector in) {
10     vector v = get(in);
11     vector b = v * v_x;
12     print(vtos(b), "\n");
13 }
14
15 void main() {
16     test('20 40 80');
17 }