Files
clang-p2996/flang/test/Lower/OpenMP/parallel-master.f90
Kiran Chandramohan 092a819e94 [Flang][OpenMP] Add frontend support for directives involving master (#113893)
Issue deprecation warning for these directives.
Lowering currently supports parallel master, for all other combined or
composite directives involving master, issue TODO errors.

Note: The first commit changes the formatting and generalizes the
deprecation message emission for reuse in the second commit. I can pull
it out into a separate commit if required.
2024-10-30 10:58:26 +00:00

17 lines
438 B
Fortran

! This test checks lowering of the parallel master combined construct.
! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s
! RUN: %flang_fc1 -fopenmp -emit-hlfir %s -o - | FileCheck %s
! CHECK-LABEL: func @_QPparallel_master
subroutine parallel_master(x)
integer :: x
!CHECK: omp.parallel {
!CHECK: omp.master {
!$omp parallel master
x = 1
!$omp end parallel master
!CHECK: }
!CHECK: }
end subroutine parallel_master