+ test for out-initialised checking

git-svn-id: trunk@2488 -
This commit is contained in:
Jonas Maebe 2006-02-08 20:34:16 +00:00
parent 7edc9d0e6a
commit b610622ce1
2 changed files with 18 additions and 0 deletions

1
.gitattributes vendored
View File

@ -4854,6 +4854,7 @@ tests/tbf/tb0174d.pp svneol=native#text/plain
tests/tbf/tb0175.pp svneol=native#text/plain
tests/tbf/tb0176.pp svneol=native#text/plain
tests/tbf/tb0177.pp svneol=native#text/plain
tests/tbf/tb0178.pp svneol=native#text/plain
tests/tbf/ub0115.pp svneol=native#text/plain
tests/tbf/ub0149.pp svneol=native#text/plain
tests/tbf/ub0158a.pp svneol=native#text/plain

17
tests/tbf/tb0178.pp Normal file
View File

@ -0,0 +1,17 @@
{ %fail }
{ %OPT=-Sew -veiw }
{$mode objfpc}
procedure t(out l: longint);
begin
if (l > 0) then
l := 1;
end;
var
a: longint;
begin
t(a);
writeln(a);
end.