fpc/tests/tbs/tb0143.pp
2000-11-30 22:38:14 +00:00

16 lines
356 B
ObjectPascal

{ Old file: tbs0171.pp }
{ missing typecasting in constant expression solved for pointers OK 0.99.11 (PM) }
type
pstring=^string;
const
drivestr:string='c:';
pdrivestr:pstring=pstring(@drivestr);
begin
if pdrivestr^<>'c:' then
begin
Writeln('Error in typecast of const');
Halt(1);
end;
end.