fpc/tests/webtbs/tw27348.pp
svenbarth ba75fd62f0 Fix for Mantis #27348. Applied patch by Do-wan Kim plus comments for the reason.
symdef.pas:
  * tprocdef.defaultmangledname: add some kind of differentiator to the result def, so that x(integer;integer) and x(integer):integer generate different mangled names
  * make_mangledname: also use the returndef instead of a potentially uninitialized variable like was done for tprocdef.defaultmangledname and also add a prefix (so that the two are compatible)

+ added test

git-svn-id: trunk@29579 -
2015-01-30 13:49:25 +00:00

51 lines
742 B
ObjectPascal

{ %NORUN }
program tw27348;
{$mode objfpc}
type
TRect = record
xyz: LongInt;
end;
TControl = class
end;
TWinControl = class(TControl)
procedure AlignControls(AControl: TControl; var RemainingClientRect: TRect);
end;
TAlign = (
alNone
);
{ TWinControl }
procedure TWinControl.AlignControls(AControl: TControl;
var RemainingClientRect: TRect);
procedure DoPosition(Control: TControl; AAlign: TAlign; AControlIndex: Integer);
function ConstraintHeight(NewHeight: integer): Integer;
begin
Result:=NewHeight;
end;
procedure ConstraintHeight(var NewTop, NewHeight: integer);
begin
NewHeight:=ConstraintHeight(NewHeight);
end;
begin
end;
begin
end;
begin
end.