[LoopReroll] Add an extra defensive check to avoid SCEV assertion.
[llvm-project.git] / flang / test / Semantics / OpenACC / acc-symbols01.f90
blobf08317ac12bf148217a8065e69e0d94b6fff4649
1 ! RUN: %S/../test_symbols.sh %s %t %flang_fc1 -fopenacc
2 ! REQUIRES: shell
4 !DEF: /mm MainProgram
5 program mm
6 !DEF: /mm/x ObjectEntity REAL(4)
7 !DEF: /mm/y ObjectEntity REAL(4)
8 real x, y
9 !DEF: /mm/a ObjectEntity INTEGER(4)
10 !DEF: /mm/b ObjectEntity INTEGER(4)
11 !DEF: /mm/c ObjectEntity INTEGER(4)
12 !DEF: /mm/i ObjectEntity INTEGER(4)
13 integer a(10), b(10), c(10), i
14 !REF: /mm/b
15 b = 2
16 !$acc parallel present(c) firstprivate(b) private(a)
17 !$acc loop
18 !DEF: /mm/Block1/i (AccPrivate, AccPreDetermined) HostAssoc INTEGER(4)
19 do i=1,10
20 !DEF: /mm/Block1/a (AccPrivate) HostAssoc INTEGER(4)
21 !REF: /mm/Block1/i
22 !DEF: /mm/Block1/b (AccFirstPrivate) HostAssoc INTEGER(4)
23 a(i) = b(i)
24 end do
25 !$acc end parallel
26 end program