]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/fieldparams.qc
Added more tests, fixed existing ones, and some more test system changes.
[xonotic/gmqcc.git] / tests / fieldparams.qc
diff --git a/tests/fieldparams.qc b/tests/fieldparams.qc
new file mode 100644 (file)
index 0000000..9ca71d6
--- /dev/null
@@ -0,0 +1,17 @@
+void(string, string) print = #1;
+entity() spawn = #3;
+
+.string a;
+.string b;
+
+void(entity e, .string s) callout = {
+    print(e.s, "\n");
+};
+
+void() main = {
+    local entity e;
+    e = spawn();
+    e.a = "foo";
+    e.b = "bar";
+    callout(e, b);
+};