OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [where_4.f90] - Rev 149

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

! Tests WHERE statement with a data dependency
program where_4
   integer, dimension(5) :: a
   integer, dimension(5) :: b

   a = (/1, 2, 3, 4, 5/)
   b = (/1, 0, 1, 0, 1/)
   
   where (b .ne. 0)
      a(:) = a(5:1:-1)
   endwhere
   if (any (a .ne. (/5, 2, 3, 4, 1/))) 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.