Increase timeout factor for hppa*-*-* in gcc.dg/long_branch.c
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_32.f90
blobc388be42fc5da89b78dfcbab68408dde612c2d40
1 ! { dg-do compile }
3 ! PR 45827: [4.6 Regression] [OOP] mio_component_ref(): Component not found
5 ! Contributed by Daniel Franke <dfranke@gcc.gnu.org>
7 MODULE m
9 TYPE, ABSTRACT :: t
10 PRIVATE
11 INTEGER :: n
12 CONTAINS
13 PROCEDURE :: get
14 END TYPE
16 ABSTRACT INTERFACE
17 SUBROUTINE create(this)
18 IMPORT t
19 CLASS(t) :: this
20 END SUBROUTINE
21 END INTERFACE
23 CONTAINS
25 FUNCTION get(this)
26 CLASS(t) :: this
27 REAL, DIMENSION(this%n) :: get
28 END FUNCTION
30 SUBROUTINE destroy(this)
31 CLASS(t) :: this
32 END SUBROUTINE
34 END MODULE
37 PROGRAM p
38 USE m
39 END