Skip to content

Commit c020191

Browse files
authored
[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"
1 parent 2894719 commit c020191

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s -fopenmp-version=50 2>&1 | FileCheck %s
2+
! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s -fopenmp-version=50 2>&1 | FileCheck %s
3+
4+
! CHECK: not yet implemented: Taskloop construct
5+
subroutine omp_taskloop
6+
integer :: i
7+
!$omp parallel
8+
!$omp taskloop
9+
do i = 1, 10
10+
!$omp cancel taskgroup
11+
end do
12+
!$omp end taskloop
13+
!$omp end parallel
14+
end subroutine omp_taskloop

0 commit comments

Comments
 (0)