fpc/tests/webtbs/tw38766.pp
Jonas Maebe acb59c7592 --- Merging r49236 into '.':
U    compiler/aarch64/hlcgcpu.pas
A    tests/webtbs/tw38766.pp
--- Recording mergeinfo for merge of r49236 into '.':
 U   .

git-svn-id: branches/fixes_3_2@49237 -
2021-04-19 20:52:46 +00:00

29 lines
348 B
ObjectPascal

{$mode objfpc}
type
trec = record
x, y: longint;
end;
function max(x,y: longint): longint;
begin
if x>y then
result:=x
else
result:=y;
end;
function test: trec; inline;
begin
result.x:=1;
result.y:=2;
result.x:=max(result.x,result.y);
end;
begin
if test.x<>2 then
halt(1);
if test.y<>2 then
halt(2);
end.