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