! Program to test WHERE on unknown size arraysprogram where_3integer A(10,2)A=0call sub(A)containssubroutine sub(B)integer,dimension(:,:)::BB(1:5,1)=0B(6:10,1)=5where(B(:,1)>0)B(:,1)=B(:,1)+10endwhereif(any(B.ne.reshape((/0,0,0,0,0,15,15,15,15,15,&0,0,0,0,0,0,0,0,0,0/),(/10,2/))))call abortend subroutineend program