mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 10:28:15 +02:00
16 lines
356 B
ObjectPascal
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.
|