Browse Source

* nested for loop with same counter

git-svn-id: trunk@2764 -
peter 19 years ago
parent
commit
08aea3b7fb
2 changed files with 15 additions and 0 deletions
  1. 1 0
      .gitattributes
  2. 14 0
      tests/tbf/tb0179.pp

+ 1 - 0
.gitattributes

@@ -4867,6 +4867,7 @@ 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/tb0179.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

+ 14 - 0
tests/tbf/tb0179.pp

@@ -0,0 +1,14 @@
+{ %fail }
+
+var
+  i : integer;
+begin
+  if i=2 then
+    begin
+      for i:=1 to 10 do
+      { The next line should be forbidden }
+        for i:=1 to 9 do
+          writeln(i);
+    end;
+end.
+