]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/pointlife.qc
Forgot about this file
[xonotic/gmqcc.git] / tests / pointlife.qc
index 13bbde71eab0b53623504b8a4ab6d1a4fb42ab56..e32795a22ffc7ad1e47b5e97cc8d0b0e9568add2 100644 (file)
@@ -1,19 +1,19 @@
 var float foo = 0;
 
 void funcall() {}
-void bar(string) {}
+void bar(string str) {}
 
 void main(string str) {
-       string pl;
+    string pl;
 
-       if (foo)
-               return; // this is a block wher 'str' doesn't live
-                       // so the point-life will not overlap with str
-       pl = "Got overwritten!\n"; // pl point-life
+    if (foo)
+        return; // this is a block wher 'str' doesn't live
+                // so the point-life will not overlap with str
+    pl = "Got overwritten!\n"; // pl point-life
 
-       print(str);
+    print(str);
 
-       pl = "Kill the lifrange here"; // pl life stops
-       funcall(); // Now lock pl in case we have -Oglobal-temps
-       bar(pl); // pl life starts here now
+    pl = "Kill the lifrange here"; // pl life stops
+    funcall(); // Now lock pl in case we have -Oglobal-temps
+    bar(pl); // pl life starts here now
 }