summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/intrinsic_ifunction_2.f90
blob: 1014cfff3851e69eb9a404bdb7e8d7dd108af3f4 (plain)
1
2
3
4
5
6
7
8
! { dg-do run }
! PR 48066 - this used to segfault.
program p
  real(8) :: empty(0, 3), square(0)
  logical :: lempty(0, 3), lsquare(0)
  square = sum(empty * empty, 2)
  lsquare = any(lempty .and. lempty, 2)
end