mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 18:59:40 +02:00
20 lines
200 B
ObjectPascal
20 lines
200 B
ObjectPascal
{$inline on}
|
|
|
|
type
|
|
pbyte = ^byte;
|
|
|
|
procedure test(p: pchar);
|
|
begin
|
|
if pbyte(p)^ <> 0 then
|
|
halt(1);
|
|
end;
|
|
|
|
procedure test(const p); inline;
|
|
begin
|
|
test(pchar(@p));
|
|
end;
|
|
|
|
begin
|
|
test(#0);
|
|
end.
|