blob: 7ee9ce65315be012b4c4701f47b9cd7e1912e9ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ Source provided for Free Pascal Bug Report 2028 }
{ Submitted by "Han Wentao" on 2002-07-04 }
{ e-mail: hanwentao@cnnb.net }
{$INLINE ON}
function Max(a,b:Byte):Byte; inline;
begin
if a>b then
Max:=a
else
Max:=b;
end;
var
l1, l2 : longint;
begin
l1:=Max(1,2);
l2:=Max(2,1);
if l1 <> 2 then
begin
WriteLn('Error!');
halt(1);
end;
if l2 <> 2 then
begin
WriteLn('Error!');
halt(1);
end;
end.
|