mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 03:28:40 +02:00

- fix for-in loop for string const array - add some test from Alexander S. Klenin (issue #0014990) git-svn-id: trunk@14041 -
18 lines
196 B
ObjectPascal
18 lines
196 B
ObjectPascal
{ %FAIL}
|
|
|
|
// test that wrong type using for the for-in loop fails
|
|
|
|
program tforin11;
|
|
|
|
{$mode objfpc}{$H+}
|
|
{$apptype console}
|
|
|
|
var
|
|
s: String;
|
|
b: byte;
|
|
begin
|
|
for b in s do
|
|
write(b);
|
|
end.
|
|
|