Krzysztof Parzyszek 89d79b65f7
[flang][OpenMP] Semantic checks for TASKGRAPH (#160115)
This verifies the "structural" restrictions on constructs encountered in
a TASKGRAPH construct.

There are also restrictions that apply to list items, specifically in
the following contexts:
- a list item on a clause on a replayable construct,
- data-sharing attributes for a variable on a replayable construct.
These restrictions are not verified, because that would require knowing
which clauses (on a potential compound directive) apply to the task-
generating construct of interest. This information is not available
during semantic checks.
2025-09-22 14:21:12 -05:00

16 lines
480 B
Fortran

!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=60
subroutine f00(x)
integer :: x(*)
!ERROR: Whole assumed-size array 'x' may not appear here without subscripts
!ERROR: Must have LOGICAL type, but is INTEGER(4)
!$omp taskgraph graph_reset(x)
!$omp end taskgraph
end
subroutine f01
!ERROR: At most one GRAPH_RESET clause can appear on the TASKGRAPH directive
!$omp taskgraph graph_reset(.true.) graph_reset(.false.)
!$omp end taskgraph
end