The syntax with the object list following the memory-order clause has been removed in OpenMP 5.2. Still, accept that syntax with versions >= 5.2, but treat it as deprecated (and emit a warning).
8 lines
260 B
Fortran
8 lines
260 B
Fortran
! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp -fopenmp-version=52 -Werror
|
|
|
|
subroutine f00(x)
|
|
integer :: x
|
|
!ERROR: The syntax "FLUSH clause (object, ...)" has been deprecated, use "FLUSH(object, ...) clause" instead
|
|
!$omp flush seq_cst (x)
|
|
end
|