* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_fail_st.f90
blobd4eb8e2c240be1aac5a52ac3727f22c792dadd96
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original -fcoarray=lib" }
4 program fail_statement
5 implicit none
7 integer :: me,np,stat
9 me = this_image()
10 np = num_images()
11 stat = 0
13 if(me == 1) fail image
15 sync all(stat=stat)
17 if(stat /= 0) write(*,*) 'Image failed during sync'
19 end program fail_statement
21 ! { dg-final { scan-tree-dump-times "_gfortran_caf_fail_image \\\(0B\\\);" 1 "original" } }