Retro68/gcc/gcc/testsuite/gfortran.dg/pr83939.f90
2018-12-28 16:30:48 +01:00

13 lines
305 B
Fortran

! { dg-do compile }
elemental function f() result(s) ! { dg-error "shall not have an ALLOCATABLE or POINTER" }
allocatable s
allocate(s)
s = 3.5
end function
elemental function g() result(s) ! { dg-error "shall not have an ALLOCATABLE or POINTER" }
pointer s
allocate(s)
s = 3.5
end function