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_14.f90] - Blame information for rev 816

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

Line No. Rev Author Line
1 303 jeremybenn
! Check whether an empty ELSEWHERE works
2
program where_14
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
     b = 3
10
   elsewhere
11
   endwhere
12
   if (any (b .ne. (/3, 0, 0, 0, 0/))) &
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.