mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 04:19:28 +02:00
+ Test for locally initialized variables
This commit is contained in:
parent
fbd28675c9
commit
780b31cdb3
18
tests/test/tinivar.pp
Normal file
18
tests/test/tinivar.pp
Normal file
@ -0,0 +1,18 @@
|
||||
{ %VERSION=1.1 }
|
||||
|
||||
program tinivar;
|
||||
|
||||
procedure p1;
|
||||
var
|
||||
a : integer = 1;
|
||||
begin
|
||||
writeln(a);
|
||||
if a<>1 then
|
||||
halt(1);
|
||||
inc(a);
|
||||
end;
|
||||
|
||||
begin
|
||||
p1;
|
||||
p1;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user