]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/arrays2.qc
array testcase for previous commit
[xonotic/gmqcc.git] / tests / arrays2.qc
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 globs[] = { 1, 2, 3 };
 
 void main() {
     float i;
@@ -12,4 +13,9 @@ void main() {
     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");
 }