]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
array testcase for previous commit
authorWolfgang Bumiller <wry.git@bumiller.com>
Wed, 12 Jun 2013 13:47:59 +0000 (15:47 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Wed, 12 Jun 2013 13:47:59 +0000 (15:47 +0200)
tests/arrays.tmpl
tests/arrays2.qc

index 6e21f8743ebda293ab288649c91c2f2401a0b037..747a838f8cfd7bb6ca14673a107a5c7ed3d05f07 100644 (file)
@@ -4,3 +4,4 @@ T: -execute
 C: -std=fteqcc
 M: 10 20 30 40 50 60 70
 M: 100 200 300 400 500 600 0
 C: -std=fteqcc
 M: 10 20 30 40 50 60 70
 M: 100 200 300 400 500 600 0
+M: 1 2 3
index f89739f33a8d57c543169776999f8f2b635528a5..fc8bdf578219399a085838702f8d966a253d1b18 100644 (file)
@@ -1,5 +1,6 @@
 float glob1[7] = { 10, 20, 30, 40, 50, 60, 70 };
 float glob2[7] = { 100, 200, 300, 400, 500, 600 };
 float glob1[7] = { 10, 20, 30, 40, 50, 60, 70 };
 float glob2[7] = { 100, 200, 300, 400, 500, 600 };
+float globs[] = { 1, 2, 3 };
 
 void main() {
     float i;
 
 void main() {
     float i;
@@ -12,4 +13,9 @@ void main() {
     for (i = 1; i != 7; ++i)
         print(" ", ftos(glob2[i]));
     print("\n");
     for (i = 1; i != 7; ++i)
         print(" ", ftos(glob2[i]));
     print("\n");
+
+    print(ftos(globs[0]));
+    for (i = 1; i != 3; ++i)
+        print(" ", ftos(globs[i]));
+    print("\n");
 }
 }