[LLVM-FLANG] [OpenMP] [Taskloop] - Add test case with cancel construct inside taskloop (#129862)

Added a test case with cancel construct inside taskloop. Currently
taskloop lowering is not supported so below error is issued: "not yet
implemented: Taskloop construct"
Once the lowering patch is merged, todo error should be issued for
cancel construct. "not yet implemented: OpenMPCancelConstruct"
This commit is contained in:
Kiran Kumar T P 2025-03-07 11:15:22 +05:30 committed by GitHub
parent 2894719314
commit c02019141c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,14 @@
! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s -fopenmp-version=50 2>&1 | FileCheck %s
! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s -fopenmp-version=50 2>&1 | FileCheck %s
! CHECK: not yet implemented: Taskloop construct
subroutine omp_taskloop
integer :: i
!$omp parallel
!$omp taskloop
do i = 1, 10
!$omp cancel taskgroup
end do
!$omp end taskloop
!$omp end parallel
end subroutine omp_taskloop