aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr104571.f90
blob: 9a6f2d0e8726d7c6a1c7501b6f18c36bb939fa0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
! { dg-options "-std=legacy" }
! PR fortran/104571 - ICE in resolve_elemental_actual
! Contributed by G.Steinmetz

program p
  real :: x(3)
  call g(x)                 ! { dg-error "Missing alternate return" }
contains
  elemental subroutine g(*) ! { dg-error "Alternate return specifier" }
  end
end