]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/forloop.qc
fix for loops
[xonotic/gmqcc.git] / tests / forloop.qc
diff --git a/tests/forloop.qc b/tests/forloop.qc
new file mode 100644 (file)
index 0000000..17512bd
--- /dev/null
@@ -0,0 +1,13 @@
+void main() {
+    float j;
+    for (j = 0; j < 2; ++j)
+        print("+");
+
+    for (float i = 0; i < 5; ++i)
+        print("*");
+
+    for (;;) {
+        print("\n");
+        break;
+    }
+}