X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=tests%2Farrays2.qc;h=fc8bdf578219399a085838702f8d966a253d1b18;hp=f89739f33a8d57c543169776999f8f2b635528a5;hb=b30368f026e4e1bf27e5beb943d693dbd2268457;hpb=dc91918c1f07b5aaeaf5ff911c5791ee15d1905a diff --git a/tests/arrays2.qc b/tests/arrays2.qc index f89739f..fc8bdf5 100644 --- a/tests/arrays2.qc +++ b/tests/arrays2.qc @@ -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"); }