PR c/29467
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_13.f90
blob989cd66efefd9539ef44049e232d2dd7ff584a43
1 ! { dg-do compile }
2 ! { dg-options "-g" }
4 ! PR 38152: Procedure pointers as module variables.
6 ! Contributed by Daniel Kraft <domob@gcc.gnu.org>
8 MODULE myfortran_binding
10 IMPLICIT NONE
11 PROCEDURE(error_stop), POINTER :: error_handler
13 CONTAINS
15 LOGICAL FUNCTION myfortran_shutdown ()
16 CALL error_handler ()
17 END FUNCTION myfortran_shutdown
19 SUBROUTINE error_stop ()
20 END SUBROUTINE error_stop
22 END MODULE myfortran_binding
25 use myfortran_binding
26 error_handler => error_stop
27 end