tw1407.pp 486 B

12345678910111213141516
  1. { Source provided for Free Pascal Bug Report 1407 }
  2. { Submitted by "vigo von harrach" on 2001-02-13 }
  3. { e-mail: [email protected] }
  4. { compiled with 1.04 on win32 }
  5. { options : -B -CX -XXs -OG2p3 -So }
  6. var
  7. a : array[1..10] of integer;
  8. i : byte;
  9. begin
  10. { both give compile time errors }
  11. for a[1] := 1 to 10 do begin end;
  12. for a[10] := 1 to 10 do begin end;
  13. {i:=5;
  14. for a[i] := 1 to 10 do begin end;
  15. this fails in BP }
  16. end.