1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
3 ! 2.17.8 Flush construct [OpenMP 5.0]
4 ! memory-order-clause ->
12 real, DIMENSION(10) :: array
15 !$omp parallel num_threads(4)
16 !Only memory-order-clauses.
17 if (omp_get_thread_num() == 1) then
20 array
= (/1, 2, 3, 4, 5, 6, 7, 8, 9, 10/)
22 array
= (/1, 2, 3, 4, 5, 6, 7, 8, 9, 10/)
25 !ERROR: expected end of line
26 !$omp flush private(array)
27 !ERROR: expected end of line
28 !$omp flush num_threads(4)
30 ! Mix allowed and not allowed clauses.
31 !ERROR: expected end of line
32 !$omp flush num_threads(4) acquire