]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/vecfields.qc
catch broken vector member access
[xonotic/gmqcc.git] / tests / vecfields.qc
index 6cc053a7a52452cb1200f895183139339f01f69f..815de98e2ecff91c320b3e59f82e2dea1aecca9b 100644 (file)
@@ -10,4 +10,8 @@ void main() {
        e.v1 = '1 2 3';
        print(ftos(set(e, 42)), " => ");
        print(vtos(e.v1), "\n");
+
+#ifdef BROKEN_ACCESS
+       (e.v1 = '0 0 0').x += 1;
+#endif
 }