9 DATA RSLT
/4,1,4,1,4,1,4,1,4,1/
11 gda1
= (/ (i
/2*2 .ne
. I
, i
=1,10) /)
13 IDA1
= INDEX ( 'DEFDEF' , 'DEF', GDA1
) !fails
15 if (IDA1(i
).NE
.RSLT(i
)) call abort
17 IDA1
= INDEX ( (/ ('DEFDEF',i
=1,10) /) , 'DEF', GDA1
) !works
19 if (IDA1(i
).NE
.RSLT(i
)) call abort