]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/vec_ops.qc
local compile-time const values are now created as globals, thus they're now subject...
[xonotic/gmqcc.git] / tests / vec_ops.qc
1 void main(vector v) {
2     print(vtos(v), "\n");
3     v /= 2;
4     print(vtos(v), "\n");
5     print(vtos(v / 2), "\n");
6     print(vtos(v), "\n");
7     print(vtos(v | 16), "\n");
8     print(vtos(v & 16), "\n");
9     print(vtos(v | '25 42 51'), "\n");
10     print(vtos(v & '25 42 51'), "\n");
11     print(vtos(v >< '3 2 1'));
12 }