OpenCores
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_5.f90] - Rev 816

Go to most recent revision | Compare with Previous | Blame | View Log

! Tests WHERE satement with non-integer array in the mask expression
program where_5
   integer, dimension(5) :: a
   real(kind=8), dimension(5) :: b

   a = (/1, 2, 3, 4, 5/)
   b = (/1d0, 0d0, 1d0, 0d0, 1d0/)
   
   where (b .ne. 0d0)
      a(:) = a(:) + 10
   endwhere
   if (any (a .ne. (/11, 2, 13, 4, 15/))) call abort
end program

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.