summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/reduction2.f90
blob: f855d0e7fa787914501cb92ddbbdb0d0145d1499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
! { dg-do compile }

subroutine f1
  integer :: i
  i = 0
!$omp parallel reduction (ior:i)
  i = ior (i, 3)
!$omp end parallel
!$omp parallel reduction (ior:i)
  i = ior (i, 16)
!$omp end parallel
end subroutine f1
subroutine f2
  integer :: i
  i = ior (2, 4)
!$omp parallel reduction (ior:i)
  i = ior (i, 3)
!$omp end parallel
end subroutine f2
subroutine f3
  integer :: i
  i = 6
!$omp parallel reduction (ior:i)
  i = ior (i, 3)
!$omp end parallel
end subroutine f3
subroutine f4
  integer :: i, ior
  i = 6
!$omp parallel reduction (ior:i)
  i = ior (i, 3)
!$omp end parallel
end subroutine f4