fpc/tests/tbs/tb0581.pp
2012-05-20 20:34:14 +00:00

26 lines
282 B
ObjectPascal

{$mode objfpc}
procedure dirtystack;
var
s: shortstring;
begin
fillchar(s,sizeof(s),255);
end;
procedure test(const arr: array of const);
begin
if arr[0].vinteger<>ord('$') then
halt(1);
end;
procedure doit;
begin
test(['$']);
end;
begin
dirtystack;
doit;
end.