]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
adding data/proto.qc
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 15:32:32 +0000 (17:32 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 15:32:32 +0000 (17:32 +0200)
data/proto.qc [new file with mode: 0644]

diff --git a/data/proto.qc b/data/proto.qc
new file mode 100644 (file)
index 0000000..a57112c
--- /dev/null
@@ -0,0 +1,12 @@
+void(string) print  = #1;
+
+void()       correct;
+void(string) incorrect;
+
+void() correct = {
+    print("Hello\n");
+}
+
+void() incorrect = {
+    printf("The compiler should error about this function having a wrong type\n");
+}