bolt/deps/llvm-18.1.8/flang/test/Lower/OpenMP/parallel-if.f90

13 lines
287 B
Fortran
Raw Normal View History

2025-02-14 19:21:04 +01:00
!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
!CHECK-LABEL: func @_QPtest1
subroutine test1(a)
integer :: a(:,:)
!CHECK: hlfir.destroy
!CHECK: omp.parallel if
!$omp parallel if(any(a .eq. 1))
!CHECK-NOT: hlfir.destroy
print *, "Hello"
!$omp end parallel
end subroutine