PR rtl-optimization/82913
[official-gcc.git] / gcc / testsuite / gfortran.fortran-torture / execute / where_15.f90
blobffbebb728aae2ab4cce19eb555f5cb3e01915ca5
1 ! Check whether an empty WHERE works
2 program where_15
3 integer :: a(5)
4 integer :: b(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