]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/pointlife.qc
Implemented bitwise xor operator.
[xonotic/gmqcc.git] / tests / pointlife.qc
1 var float foo = 0;
2
3 void funcall() {}
4 void bar(string) {}
5
6 void main(string str) {
7         string pl;
8
9         if (foo)
10                 return; // this is a block wher 'str' doesn't live
11                         // so the point-life will not overlap with str
12         pl = "Got overwritten!\n"; // pl point-life
13
14         print(str);
15
16         pl = "Kill the lifrange here"; // pl life stops
17         funcall(); // Now lock pl in case we have -Oglobal-temps
18         bar(pl); // pl life starts here now
19 }