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