2 ! { dg-options "-std=legacy" }
4 ! Check that PR20877 and PR25047 are fixed by the patch for
5 ! PR24558. Both modules would emit the error:
6 ! insert_bbt(): Duplicate key found!
7 ! because of the prior references to a module function entry.
9 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
13 FUNCTION K(I
) RESULT(J
)
14 ENTRY J() ! { dg-error "conflicts with RESULT attribute" }
17 integer function foo ()
18 character*4 bar
! { dg-error "type CHARACTER" }