URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [where_2.f90] - Rev 303
Compare with Previous | Blame | View Log
! Program to test the WHERE constructsprogram where_2integer temp(10), reduce(10)temp = 10reduce(1:3) = -1reduce(4:6) = 0reduce(7:8) = 5reduce(9:10) = 10WHERE (reduce < 0)temp = 100ELSE WHERE (reduce .EQ. 0)temp = 200 + tempELSE WHEREWHERE (reduce > 6) temp = temp + sum(reduce)temp = 300 + tempEND WHEREif (any (temp .ne. (/100, 100, 100, 210, 210, 210, 310, 310, 337, 337/))) &call abortend program
