PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / array_constructor_50.f90
blobc22c980edde583c3480840a1166d9d43434e6bbb
1 ! { dg-do run }
2 ! PR 71795 - wrong result when putting an array constructor
3 ! instide an iterator.
4 program test
6 implicit none
7 integer :: i,n
8 logical, dimension(1) :: ra
9 logical :: rs
10 integer, allocatable :: a(:)
12 allocate ( a(1) )
14 n = 1
15 a = 2
17 ra = (/ (any(a(i).eq.(/1,2,3/)) ,i=1,n) /)
18 if (.not. all(ra)) call abort
19 rs = any ( (/ (any(a(i).eq.(/1,2,3/)) ,i=1,n) /) )
20 if (.not. rs) call abort
21 end program test