mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 04:29:28 +02:00
15 lines
186 B
ObjectPascal
15 lines
186 B
ObjectPascal
{ %norun }
|
|
program tpointermath3;
|
|
|
|
{$MODE FPC}
|
|
type
|
|
PByte = ^Byte;
|
|
var
|
|
PB: PByte;
|
|
begin
|
|
// in FPC/ObjFPC mode pointer math is ON by default
|
|
PB := PB + 1;
|
|
WriteLn(PB[1]);
|
|
end.
|
|
|