mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 18:09:27 +02:00
* add check if pos(ansistring) still works
This commit is contained in:
parent
9e5d6dc00b
commit
bdb7c4f84f
@ -19,14 +19,27 @@ end;
|
||||
|
||||
var
|
||||
w : widestring;
|
||||
s : ansistring;
|
||||
i : longint;
|
||||
begin
|
||||
err:=true;
|
||||
{ this should choosse the shortstring version }
|
||||
lowercase(w);
|
||||
if err then
|
||||
begin
|
||||
writeln('ERROR!');
|
||||
writeln('Wrong lowercase Error!');
|
||||
halt(1);
|
||||
end;
|
||||
|
||||
{ check if ansistring pos() call is not broken }
|
||||
s:='';
|
||||
for i:=1 to 300 do s:=s+'.';
|
||||
s:=s+'test';
|
||||
if pos('test',s)<>301 then
|
||||
begin
|
||||
writeln('Pos(ansistring) Error!');
|
||||
halt(1);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user