]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/vecmath.qc
tests: add check for vector negation
[xonotic/gmqcc.git] / tests / vecmath.qc
diff --git a/tests/vecmath.qc b/tests/vecmath.qc
new file mode 100644 (file)
index 0000000..5a656bf
--- /dev/null
@@ -0,0 +1,5 @@
+void main(vector vin) {
+       stov("'15 43 0'"); // set OFS_RETURN
+       vector v2 = -vin;
+       print(vtos(v2), "\n");
+}