fpc/tests/test/tcase45.pp
florian cf215d5097 o patch by Michael V. Denisenko to handle case <string> of (see also #13700)
+ compiler implementation
  + tests

git-svn-id: trunk@13642 -
2009-09-03 20:21:30 +00:00

27 lines
387 B
ObjectPascal

{ test for complex case-var with H+ dir }
{$H+}
unit tcase45;
interface
procedure test_proc(var res : integer); inline;
implementation
var
some_str: string;
procedure test_proc(var res : integer);
begin
some_str := 'b';
case some_str + 'ababaca' of
'a'..'ba' : res := 1;
'bab'..'bbb' : res := 2;
'bbc'..'bf' : res := 3;
else res := 4;
end;
end;
end.