]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/break.qc
vararg testcases
[xonotic/gmqcc.git] / tests / break.qc
index 6aa276b2e662e98b534c326f0998de6b19672025..1a0fed1a98997a6fb29b42d3de5e5aa8186dd737 100644 (file)
@@ -1,7 +1,7 @@
 void   print(...)   = #1;
 string ftos (float) = #2;
 
-void main(float brkat, float contat) {
+void test(float brkat, float contat) {
     float i;
 
     for (i = 0; i < 10; i += 1) {
@@ -17,3 +17,10 @@ void main(float brkat, float contat) {
     }
     print("end\n");
 }
+
+void main() {
+    test(-1, -1);
+    test( 3, -1);
+    test(-1,  3);
+    test( 5,  2);
+}