From 0e3db81cf3a0a32941bca805085d49261400f952 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Tue, 21 Aug 2012 11:57:23 +0200 Subject: [PATCH] uninit.qc test --- data/uninit.qc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 data/uninit.qc 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); +}; -- 2.39.2