! Program to test the MERGE intrinsicprogram intrinsic_mergeinteger,dimension(3)::a,binteger ia=(/-1,2,3/)i=5if(merge(-1,1,i.gt.3).ne.-1)call aborti=1if(merge(-1,1,i.ge.3).ne.1)call abortb=merge(a,0,a.ge.0)if(any(b.ne.(/0,2,3/)))call abortend program