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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [class_32.f90] - Blame information for rev 801

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR 45827: [4.6 Regression] [OOP] mio_component_ref(): Component not found
4
!
5
! Contributed by Daniel Franke 
6
 
7
MODULE m
8
 
9
  TYPE, ABSTRACT :: t
10
    PRIVATE
11
    INTEGER   :: n
12
  CONTAINS
13
    PROCEDURE :: get
14
  END TYPE
15
 
16
  ABSTRACT INTERFACE
17
    SUBROUTINE create(this)
18
      IMPORT t
19
      CLASS(t) :: this
20
    END SUBROUTINE
21
  END INTERFACE
22
 
23
CONTAINS
24
 
25
  FUNCTION get(this)
26
    CLASS(t) :: this
27
    REAL, DIMENSION(this%n) :: get
28
  END FUNCTION
29
 
30
  SUBROUTINE destroy(this)
31
    CLASS(t) :: this
32
  END SUBROUTINE
33
 
34
END MODULE
35
 
36
 
37
PROGRAM p
38
  USE m
39
END
40
 
41
! { 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.