Krzysztof Parzyszek de18f5ecf8
[flang][OpenMP] Remove allocate from taskgroup in test (#92173)
Remove the `allocate`, because it needs to be used together with a
privatizing clause. The only such clause for `taskgroup` is
`task_reduction`, but it's not yet supported.
2024-05-15 06:23:34 -05:00

20 lines
538 B
Fortran

!RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
! The "allocate" clause has been removed, because it needs to be used
! together with a privatizing clause. The only such clause for "taskgroup"
! is "task_reduction", but it's not yet supported.
!CHECK-LABEL: @_QPomp_taskgroup
subroutine omp_taskgroup
!CHECK: omp.taskgroup
!$omp taskgroup
!CHECK: omp.task
!$omp task
!CHECK: fir.call @_QPwork() {{.*}}: () -> ()
call work()
!CHECK: omp.terminator
!$omp end task
!CHECK: omp.terminator
!$omp end taskgroup
end subroutine