aboutsummaryrefslogtreecommitdiff
path: root/flang/test/Semantics/OpenMP/tile04.f90
blob: 2b503efbcf52bf5417ae44895c98635723f18520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
! Testing the Semantics of tile
!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=51


subroutine threads_zero
  implicit none
  integer i

  !ERROR: The parameter of the NUM_THREADS clause must be a positive integer expression
  !$omp parallel do num_threads(-1)
  do i = 1, 5
    print *, i
  end do
end subroutine


subroutine sizes_zero
  implicit none
  integer i

  !ERROR: The parameter of the SIZES clause must be a positive integer expression
  !$omp tile sizes(0)
  do i = 1, 5
    print *, i
  end do
end subroutine


subroutine sizes_negative
  implicit none
  integer i

  !ERROR: The parameter of the SIZES clause must be a positive integer expression
  !$omp tile sizes(-1)
  do i = 1, 5
    print *, i
  end do
end subroutine