fpc/tests/test/tcptypedconst2.pp
paul 2fe59a676a merge r17435 from cpstrnew branch by michael:
* Tests for typed constants

git-svn-id: trunk@19110 -
2011-09-17 13:22:16 +00:00

22 lines
368 B
ObjectPascal

{$CODEPAGE cp437}
program tcptypedconst2;
procedure printcontent(p : Pointer; l: integer);
var
i : Integer;
pb : PByte;
begin
writeln;
pb := p;
for i := 1 to l do begin
writeln('s[',i,']= ',pb^);
inc(pb);
end;
end;
const
CFrame = #1#1#2#2#3;
P: String[Length(CFrame)] = CFrame;
begin
printcontent(@(P[1]),Length(p));
end.