URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [where_14.f90] - Rev 816
Go to most recent revision | Compare with Previous | Blame | View Log
! Check whether an empty ELSEWHERE works
program where_14
integer :: a(5)
integer :: b(5)
a = (/1, 2, 3, 4, 5/)
b = (/0, 0, 0, 0, 0/)
where (a .eq. 1)
b = 3
elsewhere
endwhere
if (any (b .ne. (/3, 0, 0, 0, 0/))) &
call abort
end program
Go to most recent revision | Compare with Previous | Blame | View Log