2 ! { dg-options "-fcoarray=lib -fdump-tree-original" }
4 ! Test coarray registering
6 integer, allocatable
:: CAF(:)[:], caf_scalar
[:]
8 allocate(CAF_SCALAR
[*])
11 ! { dg-final { scan-tree-dump-times "caf.data = \\(void . restrict\\) _gfortran_caf_register \\(4, 1, &caf.token, 0B, 0B, 0\\);" 1 "original" } }
12 ! { dg-final { scan-tree-dump-times "caf_scalar.data = \\(void . restrict\\) _gfortran_caf_register \\(4, 1, &caf_scalar.token, 0B, 0B, 0\\);" 1 "original" } }
13 ! { dg-final { cleanup-tree-dump "original" } }