fpc/tests/test/jvm/tdynarrnil.pp
Jonas Maebe 583c9a3360 * replace assigned(dynarray) and dynarray=/<>nil with length(dynarray)=/<>0
on the JVM target because empty dynarrays are not always nil there

git-svn-id: branches/jvmbackend@19154 -
2011-09-19 19:59:32 +00:00

17 lines
242 B
ObjectPascal

program tdynarrnil;
var
arr: array of longint;
begin
setlength(arr,0);
if assigned(arr) then
halt(1);
if arr<>nil then
halt(2);
setlength(arr,1);
if not assigned(arr) then
halt(3);
if arr=nil then
halt(4);
end.