]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/bitnot.qc
Support vector bitor/bitand/bitxor.
[xonotic/gmqcc.git] / tests / bitnot.qc
index c6e875d2170a54229572b395d63725a9e5bb4e0d..17ba6cd0e09dc7330caef5c33a56191de0bbbc90 100644 (file)
@@ -3,12 +3,18 @@ void main() {
     float b; b = 1;
     float c; c = 1;
     float d; d = 1;
+    vector e; e = '1 1 1';
+    vector f; f = '1 1 1';
 
     a &~= 1; // 0
     b &= ~1; // 0
     c &= ~d; // 0
+    f &~= e; // '0 0 0'
+    e &= ~e; // '0 0 0'
 
     print("a: ", ftos(a), "\nb: ",
                  ftos(b), "\nc: ",
                  ftos(c), "\n");
+    print("e: ", vtos(e), "\n");
+    print("f: ", vtos(f), "\n");
 }