libgfortran/ChangeLog:
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_lib_token_3.f90
blob2725549a3ed35b06b6cc11974517d1c02bfbceae
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=lib -fdump-tree-original" }
4 ! Test coarray registering
6 integer, allocatable :: CAF(:)[:], caf_scalar[:]
7 allocate(CAF(1)[*])
8 allocate(CAF_SCALAR[*])
9 end
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" } }