URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [where_16.f90] - Rev 695
Compare with Previous | Blame | View Log
! Check whether nested WHEREs workprogram where_16integer :: a(9)integer :: b(9)integer :: c(9)a = (/0, 0, 0, 1, 1, 1, 2, 2, 2/)b = (/0, 1, 2, 0, 1, 2, 0, 1, 2/)c = (/0, 0, 0, 0, 0, 0, 0, 0, 0/)where (a .eq. 0)where (b .eq. 0)c = 1else where (b .eq. 1)c = 2else wherec = 3endwhereelsewhere (a .eq. 1)where (b .eq. 0)c = 4else where (b .eq. 1)c = 5else wherec = 6endwhereelsewherewhere (b .eq. 0)c = 7else where (b .eq. 1)c = 8else wherec = 9endwhereendwhereif (any (c .ne. (/1, 2, 3, 4, 5, 6, 7, 8, 9/))) &call abortend program
