]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/arrays2.qc
c++: ir_block::m_instr
[xonotic/gmqcc.git] / tests / arrays2.qc
index fc8bdf578219399a085838702f8d966a253d1b18..9f0dd10c11a9e542d0e50cda5b2793d7b4037299 100644 (file)
@@ -1,6 +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 };
+string globs[] = { "Hello ", "World" };
 
 void main() {
     float i;
@@ -14,8 +14,5 @@ void main() {
         print(" ", ftos(glob2[i]));
     print("\n");
 
-    print(ftos(globs[0]));
-    for (i = 1; i != 3; ++i)
-        print(" ", ftos(globs[i]));
-    print("\n");
+    print(globs[0], globs[1], "\n");
 }