tw2028.pp 446 B

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