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

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