summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/tcase4.pp
blob: 98ed85fd410bbd09193b2c47623fc12514cc9c24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{%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.