OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [proc_ptr_13.f90] - Blame information for rev 302

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-g" }
3
!
4
! PR 38152: Procedure pointers as module variables.
5
!
6
! Contributed by Daniel Kraft 
7
 
8
MODULE myfortran_binding
9
 
10
  IMPLICIT NONE
11
  PROCEDURE(error_stop), POINTER :: error_handler
12
 
13
CONTAINS
14
 
15
  LOGICAL FUNCTION myfortran_shutdown ()
16
    CALL error_handler ()
17
  END FUNCTION myfortran_shutdown
18
 
19
  SUBROUTINE error_stop ()
20
  END SUBROUTINE error_stop
21
 
22
END MODULE myfortran_binding
23
 
24
 
25
use myfortran_binding
26
error_handler => error_stop
27
end
28
 
29
! { dg-final { cleanup-modules "myfortran_binding" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.