mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 03:28:40 +02:00
23 lines
380 B
ObjectPascal
23 lines
380 B
ObjectPascal
{ %OPT=-Or }
|
|
|
|
{ -Or option is not recognized by m68k compiler }
|
|
|
|
{$mode objfpc}
|
|
Type
|
|
t = class(TObject)
|
|
f1,f2:dword;
|
|
constructor Init(p1, p2:dword);
|
|
end;
|
|
|
|
constructor t.Init(p1, p2:dword);
|
|
begin
|
|
f1:=p1; f2:=p2;
|
|
end;
|
|
var ti:t;
|
|
begin
|
|
ti:=t.Init(1,2);
|
|
writeln(ti.f1, ', ', ti.f2); // prints garbage instead of t2
|
|
if ti.f2<>2 then
|
|
Halt(1);
|
|
end.
|