X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=tests%2Fbreak.qc;h=46f1805bda18c81d595017cb80ba873be62e3b69;hp=6aa276b2e662e98b534c326f0998de6b19672025;hb=047ecd426f4068566a2db97a894d00d98c66f345;hpb=57e7303cf47463c0e700f242e4d2eb9622c8e308 diff --git a/tests/break.qc b/tests/break.qc index 6aa276b..46f1805 100644 --- a/tests/break.qc +++ b/tests/break.qc @@ -1,7 +1,4 @@ -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 +14,10 @@ void main(float brkat, float contat) { } print("end\n"); } + +void main() { + test(-1, -1); + test( 3, -1); + test(-1, 3); + test( 5, 2); +}