mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 01:29:29 +02:00
+ Added fixed bug #280
This commit is contained in:
parent
ebf75d6d04
commit
b36d71b5cc
35
bugs/bug0280.pp
Normal file
35
bugs/bug0280.pp
Normal 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.
|
@ -320,7 +320,7 @@ Fixed bugs:
|
||||
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)
|
||||
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:
|
||||
------------------
|
||||
|
Loading…
Reference in New Issue
Block a user