mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 17:59:25 +02:00
24 lines
411 B
ObjectPascal
24 lines
411 B
ObjectPascal
program testme;
|
|
|
|
// Removing this switch removes the bug !!
|
|
{$H+}
|
|
|
|
var A : String;
|
|
P : PChar;
|
|
I : longint;
|
|
|
|
begin
|
|
P := 'Some sample testchar';
|
|
A := Ansistring(P);
|
|
Writeln ('A : ',A);
|
|
for I:=1 to length(A)-1 do
|
|
begin
|
|
A:='Some small test';
|
|
A:=A+' ansistring';
|
|
Writeln ('A : ',A);
|
|
If A<>'' then
|
|
Writeln ('All is fine')
|
|
else
|
|
writeln ('Oh-oh!');
|
|
end;
|
|
end. |