mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
uninit.qc test
This commit is contained in:
parent
812794200c
commit
0e3db81cf3
1 changed files with 19 additions and 0 deletions
19
data/uninit.qc
Normal file
19
data/uninit.qc
Normal file
|
@ -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);
|
||||
};
|
Loading…
Reference in a new issue