brintos

brintos / llvm-project-archived public Read only

0
0
Text · 971 B · 5f3b084 Raw
24 lines · plain
1! RUN: %python %S/../test_errors.py %s %flang -fopenmp2! OpenMP Version 5.03! 2.4 Requires directive4! Target-related clauses in 'requires' directives must come strictly before any5! device constructs, such as target teams distribute parallel do loops.6 7subroutine f8  !$omp target teams distribute parallel do9  do i=1, 1010  end do11  !$omp end target teams distribute parallel do12end subroutine f13 14subroutine g15  !ERROR: REQUIRES directive with 'DYNAMIC_ALLOCATORS' clause found lexically after device construct16  !$omp requires dynamic_allocators17  !ERROR: REQUIRES directive with 'REVERSE_OFFLOAD' clause found lexically after device construct18  !$omp requires reverse_offload19  !ERROR: REQUIRES directive with 'UNIFIED_ADDRESS' clause found lexically after device construct20  !$omp requires unified_address21  !ERROR: REQUIRES directive with 'UNIFIED_SHARED_MEMORY' clause found lexically after device construct22  !$omp requires unified_shared_memory23end subroutine g24