X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=data%2Ftest.qs;h=6ebdf2a32a24360f98c68b7b82130e93e285570e;hb=01bfdd2ae5d368937690d4b8eb79f6c82d29c488;hp=d5c3332676fcb76fcd532d28305741eb4cc24969;hpb=ca7ab3fd5f61fdaed6e5364929034a194f2ab8f1;p=xonotic%2Fgmqcc.git diff --git a/data/test.qs b/data/test.qs index d5c3332..6ebdf2a 100644 --- a/data/test.qs +++ b/data/test.qs @@ -82,12 +82,22 @@ FUNCTION: pow, $97 FUNCTION: findfloat, $98 FUNCTION: checkextension, $99 -; constants test -VECTOR: dude1, -1, +2, 38865.444 -FLOAT: dude2, 1 -STRING: "hello world" +FUNCTION: test #0 + FLOAT: x, 100 + FLOAT: y, 200 -FUNCTION: foo #8 - MUL_F arg1, arg2, arg3 - DONE + FLOAT: r_mul + FLOAT: r_div + FLOAT: r_add + FLOAT: r_sub + MUL_V x,y,r_mul + DIV_V x,y,r_div + ADD_V x,y,r_add + SUV_V x,y,r_sub + + STORE_V r_mul + CALL0 dprint + + STORE_V +END