2010-11-11 Jakub Jelinek <jakub@redhat.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / der_pointer_1.f90
blobb9f98f518b9b617ad03269fc3563c621319531aa
1 ! { dg-do compile }
2 ! PR13010
3 ! Arrays of self-referential pointers
4 module test
5 type list_t
6 type(list_t), pointer :: next
7 end type list_t
9 type listptr_t
10 type(list_t), pointer :: this
11 end type listptr_t
13 type x_t
14 type(listptr_t), pointer :: arr(:)
15 end type x_t
17 type(x_t), pointer :: x
18 end module test
20 ! { dg-final { cleanup-modules "test" } }