]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
split-vectors test
authorWolfgang Bumiller <wry.git@bumiller.com>
Sat, 18 Oct 2014 11:51:25 +0000 (13:51 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sat, 18 Oct 2014 11:51:25 +0000 (13:51 +0200)
tests/split-vectors.qc [new file with mode: 0644]
tests/split-vectors.tmpl [new file with mode: 0644]

diff --git a/tests/split-vectors.qc b/tests/split-vectors.qc
new file mode 100644 (file)
index 0000000..e98ed9f
--- /dev/null
@@ -0,0 +1,6 @@
+void main() {
+    print(vtos('1 2 3'), "\n");
+    print(vtos('4 5 6'), "\n");
+    print(vtos('7 8 9'), "\n");
+    print(vtos('1 5 9'), "\n");
+}
diff --git a/tests/split-vectors.tmpl b/tests/split-vectors.tmpl
new file mode 100644 (file)
index 0000000..6701d32
--- /dev/null
@@ -0,0 +1,8 @@
+I: split-vectors.qc
+D: test -fsplit-vector-parameters
+T: -execute
+C: -std=fteqcc -Wall -Werror -fsplit-vector-parameters
+M: '1 2 3'
+M: '4 5 6'
+M: '7 8 9'
+M: '1 5 9'