add another test that we just didn't have anywhere else yet
[xonotic/gmqcc.git] / tests / fieldfuncs.qc
1 .float field;
2
3 .float getfield() {
4   return field;
5 }
6
7 void() main = {
8   entity e = spawn();
9   e.field = 42;
10   print(ftos(e.(getfield())), "\n");
11   .float memptr = getfield();
12   print(ftos(e.memptr), "\n");
13 }