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.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [generic_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
! tests the patch for PR30870, in which the generic XX was rejected
3
! because the specific with the same name was not looked for.
4
!
5
! Contributed by Joost VandeVondele 
6
!
7
MODULE TEST
8
 INTERFACE xx
9
   MODULE PROCEDURE xx
10
 END INTERFACE
11
 public :: xx
12
CONTAINS
13
 SUBROUTINE xx(i)
14
  INTEGER :: I
15
  I=7
16
 END SUBROUTINE
17
END
18
MODULE TOO
19
CONTAINS
20
 SUBROUTINE SUB(xx,I)
21
  INTERFACE
22
    SUBROUTINE XX(I)
23
        INTEGER :: I
24
    END SUBROUTINE
25
  END INTERFACE
26
  CALL XX(I)
27
 END SUBROUTINE
28
END MODULE TOO
29
PROGRAM TT
30
 USE TEST
31
 USE TOO
32
 INTEGER :: I
33
 CALL SUB(xx,I)
34
 IF (I.NE.7) CALL ABORT()
35
END PROGRAM
36
! { dg-final { cleanup-modules "test too" } }

powered by: WebSVN 2.1.0

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