PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_poly_5.f90
blob8e6142f935dfa930fe1fe1edf618006cbd57c4b1
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=lib -fdump-tree-original" }
4 subroutine test(x)
5 type t
6 real, allocatable :: x[:]
7 end type t
9 class(t) :: x
10 allocate(x%x[*])
11 end subroutine test
13 ! { dg-final { scan-tree-dump-times "_gfortran_caf_register \\(4, 1, &x->_data->x.token, \\(void \\*\\) &x->_data->x, 0B, 0B, 0\\);" 1 "original" } }