Browse Source

+ test for out-initialised checking

git-svn-id: trunk@2488 -
Jonas Maebe 19 years ago
parent
commit
b610622ce1
2 changed files with 18 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 17 0
      tests/tbf/tb0178.pp

+ 1 - 0
.gitattributes

@@ -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 - 0
tests/tbf/tb0178.pp

@@ -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.