RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_28.f03
blob258633df45be351cadb145b744c0706f2ad4e21a
1 ! { dg-do compile }
3 ! PR 46344: [4.6 Regression] [OOP] ICE with allocatable CLASS components
5 ! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
7 module m
9   type t1
10   end type
12   type  t2
13     class(t1), allocatable :: cc
14   end type
16   class(t2), allocatable :: sm
18 end module m
21 module m2
23   type t1
24   end type
26   type  t2
27     class(t1), allocatable :: c
28   end type
30   type(t1) :: w
32 end module m2
35 program p
36   use m
37   implicit none
39   type(t2), allocatable :: x(:) 
41   allocate(x(1))
43 end program p