PR rtl-optimization/82913
[official-gcc.git] / gcc / testsuite / gfortran.dg / coarray_collectives_15.f90
blob2ddbe5a793bdf363aa862682ae1043ea422f8607
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original -fcoarray=single" }
4 ! CO_REDUCE
6 program test
7 implicit none
8 intrinsic co_reduce
9 integer :: stat1
10 real :: val
11 call co_reduce(val, valid, result_image=1, stat=stat1)
12 contains
13 pure real function valid(x,y)
14 real, value :: x, y
15 valid = x * y
16 end function valid
17 end program test
19 ! { dg-final { scan-tree-dump-times "stat1 = 0;" 1 "original" } }