2 ! Tests the fix for PR30880, in which the variable d1
3 ! in module m1 would cause an error in the main program
4 ! because it has an initializer and is a dummy. This
5 ! came about because the function with multiple entries
6 ! assigns the initializer earlier than for other cases.
8 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
15 FUNCTION F1(d1
) RESULT(res
)
17 TYPE(T1
), INTENT(OUT
) :: d1
18 TYPE(T1
), INTENT(INOUT
) :: d2
22 ENTRY E1(d2
) RESULT(res
)
35 ! { dg-final { cleanup-modules "m1" } }