diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/coarray_poly_5.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/coarray_poly_5.f90 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/coarray_poly_5.f90 b/gcc/testsuite/gfortran.dg/coarray_poly_5.f90 new file mode 100644 index 00000000000..29c9c8c3140 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/coarray_poly_5.f90 @@ -0,0 +1,14 @@ +! { dg-do compile } +! { dg-options "-fcoarray=lib -fdump-tree-original" } + +subroutine test(x) +type t + real, allocatable :: x[:] +end type t + +class(t) :: x +allocate(x%x[*]) +end subroutine test + +! { dg-final { scan-tree-dump-times "x->_data->x.data = _gfortran_caf_register \\(4, 1, &x->_data->x.token, 0B, 0B, 0\\);" 1 "original" } } +! { dg-final { cleanup-tree-dump "original" } } |