]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
uninit.qc test
authorWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 21 Aug 2012 09:57:23 +0000 (11:57 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 21 Aug 2012 09:57:23 +0000 (11:57 +0200)
data/uninit.qc [new file with mode: 0644]

diff --git a/data/uninit.qc b/data/uninit.qc
new file mode 100644 (file)
index 0000000..d161d83
--- /dev/null
@@ -0,0 +1,19 @@
+void(string) print = #1;
+void(float) ftos = #2;
+void() main = {
+    local float uninit, unused, setonly;
+    local vector invec;
+    print("foo\n");
+
+    setonly = 3;
+    invec = '1 2 3';
+
+    if (0)
+        uninit = 3;
+    ftos(uninit);
+    ftos(invec_x);
+};
+
+void(float par) partest = {
+    ftos(par);
+};