gcc/fortran/
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_class_1.f90
blob1644166bcf996fa7a05b1c340254e619a9cb37bc
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
4 ! PR fortran/51632
6 ! Was rejected before as __def_init and __copy were
7 ! resolved and coarray components aren't valid in this
8 ! context
10 module periodic_2nd_order_module
11 implicit none
13 type periodic_2nd_order
14 real, allocatable :: global_f(:)[:]
15 contains
16 procedure :: output
17 end type
19 contains
20 subroutine output (this)
21 class(periodic_2nd_order), intent(in) :: this
22 end subroutine
23 end module