fpc/tests/webtbf/tw14713a.pp
Jonas Maebe fffa66e2f9 * only allow implicit conversions from 0 to NIL in Delphi mode, rather than
from any ordinal constant, and give a warning for this one allowed
    conversion like Kylix does (mantis )
  * this required calling simplify from typecheckpass in ttypeconvnode for
    cord_to_pointer, because this simplification prevents the type checking
    from happening (but the typecheck itself also does that simplification)

git-svn-id: trunk@13919 -
2009-10-22 19:49:08 +00:00

10 lines
64 B
ObjectPascal

{ %fail }
{$mode delphi}
var
p: pointer;
begin
p:=1;
end.