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

Subversion Repositories openrisc_me

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

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

Line No. Rev Author Line
1 303 jeremybenn
! Check whether an empty WHERE works
2
program where_15
3
   integer :: a(5)
4
   integer :: b(5)
5
 
6
   a = (/1, 2, 3, 4, 5/)
7
   b = (/0, 0, 0, 0, 0/)
8
   where (a .eq. 1)
9
   elsewhere
10
     b = 2
11
   endwhere
12
   if (any (b .ne. (/0, 2, 2, 2, 2/))) &
13
     call abort
14
end program
15
 

powered by: WebSVN 2.1.0

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