Explorar o código

* nested for loop with same counter

git-svn-id: trunk@2764 -
peter %!s(int64=19) %!d(string=hai) anos
pai
achega
08aea3b7fb
Modificáronse 2 ficheiros con 15 adicións e 0 borrados
  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.
+