+ Added fixed bug #280

This commit is contained in:
michael 1999-08-01 11:04:07 +00:00
parent ebf75d6d04
commit b36d71b5cc
2 changed files with 36 additions and 1 deletions

35
bugs/bug0280.pp Normal file
View File

@ -0,0 +1,35 @@
{$H+}
program memhole;
uses
dpmiexcp;
type
TMyClass = class
s: String;
end;
plongint = ^longint;
procedure dotest;
var
c: TMyClass;
s : string;
begin
s:='world';
s:='Hallo '+s;
writeln((plongint(s)-4)^);
c := TMyClass.Create;
writeln(longint(c.s));
c.s := Copy('Test', 1, 4);
writeln((plongint(c.s)-4)^);
c.free;
end;
begin
writeln(memavail);
dotest;
writeln(memavail);
end.

View File

@ -320,7 +320,7 @@ Fixed bugs:
bug0267.pp parameters after methodpointer are wrong OK 0.99.12b (FK) bug0267.pp parameters after methodpointer are wrong OK 0.99.12b (FK)
bug0269.pp wrong linenumber for repeat until when type mismatch OK 0.99.12b (PM) bug0269.pp wrong linenumber for repeat until when type mismatch OK 0.99.12b (PM)
bug0278.pp (* in conditional code is handled wrong for tp,delphi OK 0.99.13 (PFV) bug0278.pp (* in conditional code is handled wrong for tp,delphi OK 0.99.13 (PFV)
bug0280.pp problem with object finalization. OK 0.99.13 (FK)
Unproducable bugs: Unproducable bugs:
------------------ ------------------