blob: b4323ca81fbe5311ba377ce9c84e23de9cec76dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
! Check to ensure only the first true clause in WHERE is
! executed.
program where_17
integer :: a(3)
a = (/1, 2, 3/)
where (a .eq. 1)
a = 2
elsewhere (a .le. 2)
a = 3
elsewhere (a .le. 3)
a = 4
endwhere
if (any (a .ne. (/2, 3, 4/))) call abort
end program
|