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/] [recursive_check_5.f03] - 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 "-frecursive" }
3
 
4
! PR fortran/37779
5
! Check that -frecursive allows using procedures in as procedure expressions.
6
 
7
MODULE m
8
  IMPLICIT NONE
9
 
10
CONTAINS
11
 
12
  SUBROUTINE test ()
13
    IMPLICIT NONE
14
    PROCEDURE(test), POINTER :: procptr
15
 
16
    CALL bar (test) ! { dg-bogus "Non-RECURSIVE" }
17
    procptr => test ! { dg-bogus "Non-RECURSIVE" }
18
  END SUBROUTINE test
19
 
20
  INTEGER FUNCTION func ()
21
    ! Using a result variable is ok of course!
22
    func = 42 ! { dg-bogus "Non-RECURSIVE" }
23
  END FUNCTION func
24
 
25
END MODULE m
26
 
27
! { dg-final { cleanup-modules "m" } }

powered by: WebSVN 2.1.0

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