Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / tbs / tb0127.pp
Size: Mime:
{ Old file: tbs0146.pp }
{ no sizeof() for var arrays and the size is pushed incorrect OK 0.99.7 (PFV) }


procedure myfunction(var t : array of char);
begin
  writeln(sizeof(t)); { should be 51 }
  if sizeof(t)<>51 then halt(1);
end;

var
  mycharstring : array[0..50] of char;

begin
  myfunction(mycharstring);
  if sizeof(mycharstring)<>51 then halt(1);
end.