]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Add expressions for builtins test
authorDale Weiler <killfieldengine@gmail.com>
Thu, 25 Apr 2013 17:39:05 +0000 (17:39 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 25 Apr 2013 17:39:05 +0000 (17:39 +0000)
tests/exprforbuiltins.qc [new file with mode: 0644]
tests/exprforbuiltins.tmpl [new file with mode: 0644]

diff --git a/tests/exprforbuiltins.qc b/tests/exprforbuiltins.qc
new file mode 100644 (file)
index 0000000..583d5a3
--- /dev/null
@@ -0,0 +1,7 @@
+/* empty line required */
+void print(string, ...) = #__LINE__ - 1;
+
+
+void main(string input) {
+    print(input, "\n");
+}
diff --git a/tests/exprforbuiltins.tmpl b/tests/exprforbuiltins.tmpl
new file mode 100644 (file)
index 0000000..06307ac
--- /dev/null
@@ -0,0 +1,7 @@
+I: exprforbuiltins.qc
+D: expressions for builtins
+T: -execute
+C: -std=gmqcc -fftepp -fftepp-predefs
+F: -no-defs
+E: -string test
+M: test