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