2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_proc_33.f90
blob68ea53fcd115a158f772e3b028aa9726401f1f4c
1 ! { dg-do compile }
3 ! PR 60232: [OOP] The rank of the element in the structure constructor does not match that of the component
5 ! Contributed by Antony Lewis <antony@cosmologist.info>
7 module ObjectLists
8 implicit none
10 Type TObjectList
11 contains
12 procedure :: ArrayItem
13 end Type
15 contains
17 function ArrayItem(L) result(P)
18 Class(TObjectList) :: L
19 Class(TObjectList), pointer :: P(:)
20 end function
22 end module
25 use ObjectLists
26 implicit none
28 Type, extends(TObjectList):: TSampleList
29 end Type
31 contains
33 subroutine TSampleList_ConfidVal(L)
34 Class(TSampleList) :: L
35 end subroutine
37 end
39 ! { dg-final { cleanup-modules "ObjectLists" } }