fpc/tests/test/tover3.pp
Jonas Maebe 5bc156efea * always demote type conversions which cannot represent part of the
source value to convert_l3, instead of only those with a destination
    type whose size is < source size (like Delphi) + test -> fixes
    toperator6 along with a host of wrong tordconst typeconversions in
    the compiler sources themselves (although most are harmless)

git-svn-id: trunk@8323 -
2007-08-28 19:38:40 +00:00

24 lines
264 B
ObjectPascal

{ %fail }
procedure t1(l: longint); overload;
begin
writeln('longint');
end;
procedure t1(l: smallint); overload;
begin
writeln('smallint');
end;
procedure t1(l: word); overload;
begin
writeln('word');
end;
var
c: cardinal;
begin
c:=1;
t1(c);
end.