mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-05 10:11:04 +01:00
+ test for out-initialised checking
git-svn-id: trunk@2488 -
This commit is contained in:
parent
7edc9d0e6a
commit
b610622ce1
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -4854,6 +4854,7 @@ tests/tbf/tb0174d.pp svneol=native#text/plain
|
|||||||
tests/tbf/tb0175.pp svneol=native#text/plain
|
tests/tbf/tb0175.pp svneol=native#text/plain
|
||||||
tests/tbf/tb0176.pp svneol=native#text/plain
|
tests/tbf/tb0176.pp svneol=native#text/plain
|
||||||
tests/tbf/tb0177.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/ub0115.pp svneol=native#text/plain
|
||||||
tests/tbf/ub0149.pp svneol=native#text/plain
|
tests/tbf/ub0149.pp svneol=native#text/plain
|
||||||
tests/tbf/ub0158a.pp svneol=native#text/plain
|
tests/tbf/ub0158a.pp svneol=native#text/plain
|
||||||
|
|||||||
17
tests/tbf/tb0178.pp
Normal file
17
tests/tbf/tb0178.pp
Normal 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.
|
||||||
Loading…
Reference in New Issue
Block a user