]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/operators.qc
Fixing operator precedence of suffices
[xonotic/gmqcc.git] / tests / operators.qc
index ed617e92b3e8f6031e483a76b541b8c1414ae177..1c23e7aa5dada59fc3ab6494fabbc165a9470f53 100644 (file)
@@ -35,4 +35,8 @@ void main() {
        // check if minus translates
        print(ftos(a--), "\n");
        print(ftos(--a), "\n");
+
+       // postfix on members
+       print(ftos(e.mem--), " = ");
+       print(ftos(e.mem+1), "\n");
 }