Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / OpenMP / do-schedule04.f90
blob0d1e189593eacfa6d2c9ecab11a08a70ee81179c
1 ! RUN: %python %S/../test_symbols.py %s %flang_fc1 -fopenmp
2 ! OpenMP Version 4.5
3 ! 2.7.1 Schedule Clause
4 ! Test that does not catch non constant integer expressions like xx - yy.
6 !DEF: /tds (Subroutine) Subprogram
7 subroutine tds
8 implicit none
9 !DEF: /tds/a ObjectEntity REAL(4)
10 !DEF: /tds/y ObjectEntity REAL(4)
11 !DEF: /tds/z ObjectEntity REAL(4)
12 real a(100),y(100),z(100)
13 !DEF: /tds/i ObjectEntity INTEGER(4)
14 !DEF: /tds/j ObjectEntity INTEGER(4)
15 !DEF: /tds/k ObjectEntity INTEGER(4)
16 integer i,j,k
18 !REF: /tds/j
19 j = 11
20 !REF: /tds/k
21 k = 12
22 !$omp do schedule(static,j-k)
23 !DEF: /tds/OtherConstruct1/i (OmpPrivate,OmpPreDetermined) HostAssoc INTEGER(4)
24 do i = 1,10
25 !REF: /tds/y
26 !REF: /tds/OtherConstruct1/i
27 !REF: /tds/z
28 !REF: /tds/a
29 y(i) = z(i-1)+a(i)
30 end do
31 !$omp end do
32 end subroutine tds