(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.dg/
gomp/
pr48794-2.f90
! PR tree-optimization/48794
! { dg-do compile }
! { dg-options "-Os -fopenmp -fexceptions -fno-tree-ccp -fno-tree-copy-prop" }

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