OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [internal_references_2.f90] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do compile }
2
! This tests the fix for the regression caused by the internal references
3
! patc, which is tested by internal_references_1.f90. Reported as PR25901.
4
!
5
! Based on test cases provided by Toon Moene  
6
!                          and by Martin Reinecke 
7
module aap
8
  interface s
9
    module procedure sub,sub1
10
  end interface
11
contains
12
  subroutine sub1(i)
13
    integer i
14
    real a
15
    call sub(a)      ! For the original test, this "defined" the procedure.
16
  end subroutine sub1
17
  subroutine sub(a)  ! Would give an error on "already defined" here
18
    real a
19
  end subroutine sub
20
end module aap
21
 
22
! { dg-final { cleanup-modules "aap" } }

powered by: WebSVN 2.1.0

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