brintos

brintos / llvm-project-archived public Read only

0
0
Text · 864 B · 4a23a6a Raw
22 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 regions.6 7subroutine f8  !$omp target9  !$omp end target10end subroutine f11 12subroutine g13  !ERROR: REQUIRES directive with 'DYNAMIC_ALLOCATORS' clause found lexically after device construct14  !$omp requires dynamic_allocators15  !ERROR: REQUIRES directive with 'REVERSE_OFFLOAD' clause found lexically after device construct16  !$omp requires reverse_offload17  !ERROR: REQUIRES directive with 'UNIFIED_ADDRESS' clause found lexically after device construct18  !$omp requires unified_address19  !ERROR: REQUIRES directive with 'UNIFIED_SHARED_MEMORY' clause found lexically after device construct20  !$omp requires unified_shared_memory21end subroutine g22