]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - misc/source/gmqcc-src/tests/mul_vf.qc
By fteqcc, hello gmqcc
[voretournament/voretournament.git] / misc / source / gmqcc-src / tests / mul_vf.qc
diff --git a/misc/source/gmqcc-src/tests/mul_vf.qc b/misc/source/gmqcc-src/tests/mul_vf.qc
new file mode 100644 (file)
index 0000000..0e8df52
--- /dev/null
@@ -0,0 +1,14 @@
+// getter to work around future -O
+vector get(vector v) {
+    return v;
+}
+
+void test(vector in) {
+    vector v = get(in);
+    vector b = v * v_x;
+    print(vtos(b), "\n");
+}
+
+void main() {
+    test('20 40 80');
+}