projects
/
xonotic
/
gmqcc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8127942
)
uninit.qc test
author
Wolfgang (Blub) Bumiller <blub@speed.at>
Tue, 21 Aug 2012 09:57:23 +0000
(11:57 +0200)
committer
Wolfgang (Blub) Bumiller <blub@speed.at>
Tue, 21 Aug 2012 09:57:23 +0000
(11:57 +0200)
data/uninit.qc
[new file with mode: 0644]
patch
|
blob
diff --git a/data/uninit.qc
b/data/uninit.qc
new file mode 100644
(file)
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);
+};