aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.fortran/task-reduction-18.f90
blob: 0cbd471832251fe6bbdcb30a29448ed0e2152269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do run }

module m
  integer :: a = 0
end module m

program main
  !$omp task
    !$omp taskgroup task_reduction (+: a)
      !$omp task in_reduction (+: a)
        a = a + 1
      !$omp end task
    !$omp end taskgroup
  !$omp end task
end