]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - misc/source/gmqcc-src/tests/functions-as-params.qc
By fteqcc, hello gmqcc
[voretournament/voretournament.git] / misc / source / gmqcc-src / tests / functions-as-params.qc
diff --git a/misc/source/gmqcc-src/tests/functions-as-params.qc b/misc/source/gmqcc-src/tests/functions-as-params.qc
new file mode 100644 (file)
index 0000000..22136b7
--- /dev/null
@@ -0,0 +1,11 @@
+string() getter = {
+    return "correct";
+};
+
+void(string() f) printer = {
+    print(f(), "\n");
+};
+
+void() main = {
+    printer(getter);
+};