fpc/tests/webtbs/tw9107.pp

19 lines
219 B
ObjectPascal

{%opt=-OoSTACKFRAME}
procedure Proc;
var
s:shortstring;
begin
s:='test';
if Copy(s,1,4)<>'test' then begin
writeln('Test failed!');
Halt(1);
end
else
writeln('Test OK.');
end;
begin
Proc;
end.