From: Wolfgang (Blub) Bumiller Date: Tue, 21 Aug 2012 09:57:23 +0000 (+0200) Subject: uninit.qc test X-Git-Tag: 0.1-rc1~120 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0e3db81cf3a0a32941bca805085d49261400f952;p=xonotic%2Fgmqcc.git uninit.qc test --- diff --git a/data/uninit.qc b/data/uninit.qc new file mode 100644 index 0000000..d161d83 --- /dev/null +++ b/data/uninit.qc @@ -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); +};