Debian Codegraph @

gcc/testsuite/gfortran.dg/coarray_poly_5.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=lib -fdump-tree-original" }
3
4 subroutine test(x)
5 type t
6 real, allocatable :: x[:]
7 end type t
8
9 class(t) :: x
10 allocate(x%x[*])
11 end subroutine test
12
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" } }