summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/pr48611.f90
blob: 643cc5c3efed5b9e53ab1e1749694bcd12d85e45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! PR tree-optimization/48611
! { dg-do compile }
! { dg-options "-Os -fopenmp -fexceptions -fno-tree-ccp -fno-tree-copy-prop" }

  integer, allocatable :: a(:)
  logical :: l
!$omp parallel private (a) reduction (.or.:l)
  do i = 1, 7
    a(:) = i
  end do
!$omp end parallel
end