Skip to content

Commit d9bb123

Browse files
committed
Add test for checking tilesizes gets rejected
1 parent 543fad0 commit d9bb123

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
! When lowering Taskloop, it is possible for the TileSizes clause to be lowered, but this is not a supported clause.
2+
! We should make sure that any use of Tilesizes with Taskloop is correctly rejected by the Semantics.
3+
! RUN: %python %S/../test_errors.py %s %flang -fopenmp
4+
5+
subroutine test
6+
integer :: i, sum
7+
8+
!ERROR: TILE cannot follow TASKLOOP
9+
!ERROR: SIZES clause is not allowed on the TASKLOOP directive
10+
!$omp taskloop tile sizes(2)
11+
do i=1,10
12+
sum = sum + i
13+
end do
14+
!$omp end taskloop
15+
end subroutine

0 commit comments

Comments
 (0)