fpc/tests/test/tforin12.pp
paul 5752be310d compiler:
- fix for-in loop for string const array
  - add some test from Alexander S. Klenin
(issue #0014990)

git-svn-id: trunk@14041 -
2009-11-04 12:07:42 +00:00

11 lines
168 B
ObjectPascal

{mode objfpc}
{$apptype console}
type T = array [1..3] of Char;
var
a: array [1..3] of T = ('asd', 'sdf', 'ddf');
s: T;
begin
for s in a do
Writeln(s);
end.