! Program to test the FORALL constructprogram testforallimplicit noneinteger,dimension(3,3)::ainteger,dimension(3)::binteger ia=reshape((/1,2,3,4,5,6,7,8,9/),(/3,3/));forall(i=1:3)b(i)=sum(a(:,i))end forall if(b(1).ne.6)call abortif(b(2).ne.15)call abortif(b(3).ne.24)call abortend program