doc: Spell "command-line option" with a hypen
[official-gcc.git] / gcc / testsuite / gfortran.dg / typebound_proc_33.f90
blob41aef56cb03d7c9d07a4f4036eb1aa5be54bd31d
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