Debian Codegraph @

gcc/testsuite/gfortran.dg/co_reduce_2.f90

raw
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
3 ! PR 103054 - wrong keyword name.
4 ! Original test case by Damian Rouson.
5 program main
6 implicit none
7 logical :: co_all= .true.
8 call co_reduce(co_all, operator=both) ! { dg-error "Cannot find keyword" }
9 call co_reduce(co_all, operation=both)
10 contains
11 logical pure function both(lhs,rhs)
12 logical, intent(in) :: lhs, rhs
13 both = lhs .and. rhs
14 end function
15 end