URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [where_11.f90] - Rev 695
Compare with Previous | Blame | View Log
! Check whether conditional ELSEWHEREs work! (without unconditional ELSEWHERE)program where_11integer :: a(5)integer :: b(5)a = (/1, 2, 3, 4, 5/)b = (/0, 0, 0, 0, 0/)where (a .eq. 1)b = 3elsewhere (a .eq. 2)b = 1elsewhere (a .eq. 3)b = 4elsewhere (a .eq. 4)b = 1elsewhere (a .eq. 5)b = 5endwhereif (any (b .ne. (/3, 1, 4, 1, 5/))) &call abortend program
