PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_alloc_with_implicit_sync_1.f90
blob1dbbcb7bf6e9849960416efe5f10cd5573853761
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original -fcoarray=lib" }
3 ! Check that allocating a coarray adds an implicit sync all.
5 implicit none
6 integer, allocatable :: f(:)[:]
7 allocate( f(20)[*], source = 1 )
8 end
10 ! { dg-final { scan-tree-dump-times "_gfortran_caf_sync_all \\(" 1 "original" } }