2 ! Tests the fix for PR25091 and PR25092 in which mismatched array
3 ! specifications between entries of the same procedure were not diagnosed.
5 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
7 ! This was PR25091 - no diagnostic given on error
8 FUNCTION F1() RESULT(RES_F1
) ! { dg-error "mismatched array specifications" }
11 ENTRY E1() RESULT(RES_E1
)
14 ! This was PR25092 - no diagnostic given on error
15 FUNCTION F2() RESULT(RES_F2
) ! { dg-error "mismatched array specifications" }
18 ENTRY E2() RESULT(RES_E2
)
21 ! Check that the versions without explicit results give the error
22 FUNCTION F3() ! { dg-error "mismatched array specifications" }
28 FUNCTION F4() ! { dg-error "mismatched array specifications" }
34 ! Check that conforming entries are OK.