2 ! Tests the fix for PR20874 in which array valued elemental
3 ! functions were permitted.
5 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
9 ELEMENTAL
FUNCTION LL(I
) ! { dg-error "must have a scalar result" }
10 INTEGER, INTENT(IN
) :: I
14 ! This was already OK.
16 ELEMENTAL
FUNCTION MM(I
)
17 INTEGER, INTENT(IN
) :: I
18 INTEGER, pointer :: MM
! { dg-error "conflicts with ELEMENTAL" }
21 ! { dg-final { cleanup-modules "Test" } }