X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=tests%2Foperators.qc;h=46bd6bbeb81c2268edb8de30f86f74e18fad9b32;hp=e1464e381c6b2740529c814f89ceb292791e9433;hb=a0f6b00a15852c6f13034c9cd3974b62e442696d;hpb=122e80cc4d3db31174ed91bfca217ed7b9a4f0c3 diff --git a/tests/operators.qc b/tests/operators.qc index e1464e3..46bd6bb 100644 --- a/tests/operators.qc +++ b/tests/operators.qc @@ -1,8 +1,3 @@ -void print(...) = #1; -string ftos (float) = #2; -string vtos (vector) = #5; -entity spawn() = #3; - .float mem; void main() { @@ -56,4 +51,7 @@ void main() { a = 1; print(ftos(a |= 2), " = 3\n"); print(ftos(a &= 6), " = 2\n"); + a = 7; + + print(ftos(a &~= 3), " = 4\n"); }