-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang][OpenMP] Allow loop iteration variables in DSA clauses (#86194)
Iteration variables of non-associated loops may be listed in DSA clauses. Fixes #78938
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
! RUN: %python %S/../test_symbols.py %s %flang_fc1 -fopenmp | ||
|
||
! OpenMP 5.2 5.1.1 | ||
! Iteration variables of non-associated loops may be listed in DSA clauses. | ||
|
||
!DEF: /shared_iv (Subroutine)Subprogram | ||
subroutine shared_iv | ||
!DEF: /shared_iv/i ObjectEntity INTEGER(4) | ||
integer i | ||
|
||
!$omp parallel shared(i) | ||
!$omp single | ||
!REF: /shared_iv/i | ||
do i = 0, 1 | ||
end do | ||
!$omp end single | ||
!$omp end parallel | ||
end subroutine |