mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 01:29:28 +02:00
19 lines
226 B
ObjectPascal
19 lines
226 B
ObjectPascal
{%FAIL}
|
|
|
|
{ left bound is greater; comparsion with empty string. Fails }
|
|
|
|
{$H+}
|
|
var
|
|
my_str: string;
|
|
i: integer;
|
|
|
|
begin
|
|
my_str := 'ababaca';
|
|
i := -1;
|
|
|
|
case my_str of
|
|
'aba'..'': i := 1;
|
|
else i := 0;
|
|
end;
|
|
end.
|