OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [where17.f90] - Blame information for rev 303

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 303 jeremybenn
! Check to ensure only the first true clause in WHERE is
2
! executed.
3
program where_17
4
   integer :: a(3)
5
 
6
   a = (/1, 2, 3/)
7
   where (a .eq. 1)
8
     a = 2
9
   elsewhere (a .le. 2)
10
     a = 3
11
   elsewhere (a .le. 3)
12
     a = 4
13
   endwhere
14
   if (any (a .ne. (/2, 3, 4/))) call abort
15
end program

powered by: WebSVN 2.1.0

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