23 lines · plain
1! RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=522! OpenMP Version 5.03! 2.4 Requires directive4! Target-related clauses in 'requires' directives must come strictly before any5! device constructs, such as declare target with 'to' clause and no device_type.6 7subroutine f8 !WARNING: The usage of TO clause on DECLARE TARGET directive has been deprecated. Use ENTER clause instead. [-Wopen-mp-usage]9 !$omp declare target to(f)10 !$omp declare target enter(f)11end subroutine f12 13subroutine g14 !ERROR: REQUIRES directive with 'DYNAMIC_ALLOCATORS' clause found lexically after device construct15 !$omp requires dynamic_allocators16 !ERROR: REQUIRES directive with 'REVERSE_OFFLOAD' clause found lexically after device construct17 !$omp requires reverse_offload18 !ERROR: REQUIRES directive with 'UNIFIED_ADDRESS' clause found lexically after device construct19 !$omp requires unified_address20 !ERROR: REQUIRES directive with 'UNIFIED_SHARED_MEMORY' clause found lexically after device construct21 !$omp requires unified_shared_memory22end subroutine g23