☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gfortran.fortran-torture
/
execute
/
where_15.f90
☽
☼
gcc/testsuite/gfortran.fortran-torture/execute/where_15.f90
code
plain
raw
1
! 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
STOP 1
14
end program
15