PR rtl-optimization/82913
[official-gcc.git] / gcc / testsuite / gfortran.fortran-torture / execute / where17.f90
blobb4323ca81fbe5311ba377ce9c84e23de9cec76dc
1 ! Check to ensure only the first true clause in WHERE is
2 ! executed.
3 program where_17
4 integer :: a(3)
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