mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-06 19:10:36 +01:00
from any ordinal constant, and give a warning for this one allowed
conversion like Kylix does (mantis #14713)
* 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 -
11 lines
82 B
ObjectPascal
11 lines
82 B
ObjectPascal
{ %fail }
|
|
{ %opt=-vw -Sew }
|
|
|
|
{$mode delphi}
|
|
|
|
var
|
|
p: pointer;
|
|
begin
|
|
p:=0;
|
|
end.
|