program ptrimplicit noneinteger,pointer,dimension(:)::a,binteger,pointer::pinteger,target::iallocate(a(1:6))a=(/1,2,3,4,5,6/)b=>aif(any(b.ne.(/1,2,3,4,5,6/)))call abortb=>a(1:6:2)if(any(b.ne.(/1,3,5/)))call abortp=>ii=42if(p.ne.42)call abortp=>a(4)if(p.ne.4)call abortend program