[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / flang / test / Semantics / OpenMP / loop-bind.f90
blobf3aa9d19fe989eeb87555475c406a5ed80284ed3
1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=50
3 ! OpenMP Version 5.0
4 ! Check OpenMP construct validity for the following directives:
5 ! 11.7 Loop directive
7 program main
8 integer :: i, x
10 !$omp teams
11 !ERROR: `BIND(TEAMS)` must be specified since the `LOOP` region is strictly nested inside a `TEAMS` region.
12 !$omp loop bind(thread)
13 do i = 1, 10
14 x = x + 1
15 end do
16 !$omp end loop
17 !$omp end teams
19 !ERROR: `BIND(TEAMS)` must be specified since the `LOOP` directive is combined with a `TEAMS` construct.
20 !$omp target teams loop bind(thread)
21 do i = 1, 10
22 x = x + 1
23 end do
24 !$omp end target teams loop
26 !ERROR: `BIND(TEAMS)` must be specified since the `LOOP` directive is combined with a `TEAMS` construct.
27 !$omp teams loop bind(thread)
28 do i = 1, 10
29 x = x + 1
30 end do
31 !$omp end teams loop
33 end program main