Files
clang-p2996/flang/test/Semantics/OpenMP/requires01.f90
Sergio Afonso 2221b758d2 [Flang][OpenMP][Sema] Add semantics checks for REQUIRES directive
This patch adds semantics checks for REQUIRES directives appearing after other
directives that are affected by them. In particular, it adds checks for device
constructs appearing after device-related REQUIRES directives and for the
`atomic_default_mem_order` clause appearing after atomic operations where the
memory order is not explicitly specified.

This is patch 2/5 of a series splitting D149337 to simplify review.

Depends on D157710.

Differential Revision: https://reviews.llvm.org/D157722
2023-08-15 12:38:14 +01:00

8 lines
199 B
Fortran

! RUN: %python %S/../test_errors.py %s %flang -fopenmp
!$omp requires reverse_offload unified_shared_memory
!ERROR: NOWAIT clause is not allowed on the REQUIRES directive
!$omp requires nowait
end