]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/fieldparams.qc
enum testcase
[xonotic/gmqcc.git] / tests / fieldparams.qc
index 9ca71d6a9c351c85c2790d3407a4b35427e61d39..8e5cb031772457a30fd9f698ae6740b002b592b2 100644 (file)
@@ -3,6 +3,7 @@ entity() spawn = #3;
 
 .string a;
 .string b;
+..string ps;
 
 void(entity e, .string s) callout = {
     print(e.s, "\n");
@@ -14,4 +15,6 @@ void() main = {
     e.a = "foo";
     e.b = "bar";
     callout(e, b);
+    e.ps = a;
+    print(e.(e.ps), "\n");
 };