summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr47757-2.f90
blob: 1f8a08f0b94e3ea01fc9a45c82f20046f1c4ee8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! PR libfortran/47757
! { dg-do run { target fortran_large_int } }

  integer(16) :: a16(2,2)
  logical :: mask(2,2)
  logical :: mask2
  a16 = 0
  mask2 = .true.
  mask = reshape([.true.,.true.,.false.,.true.],[2,2])
  print *, iany(a16, dim=1, mask=mask)
  print *, iall(a16, dim=1, mask=mask)
  print *, iparity(a16, dim=1, mask=mask)
  print *, iany(a16, dim=1, mask=mask2)
  print *, iall(a16, dim=1, mask=mask2)
  print *, iparity(a16, dim=1, mask=mask2)
end