1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
3 ! Check OpenMP 2.13.6 atomic Construct
6 !$omp parallel num_threads(4)
7 !$omp atomic seq_cst, read
10 !$omp atomic seq_cst write
14 !$omp atomic read acquire hint(OMP_LOCK_HINT_CONTENDED)
17 !$omp atomic release hint(OMP_LOCK_HINT_UNCONTENDED) write
20 !$omp atomic capture seq_cst
25 !$omp atomic hint(1) acq_rel capture
30 !ERROR: expected end of line
31 !$omp atomic read write
36 !ERROR: expected 'UPDATE'
37 !ERROR: expected 'WRITE'
38 !ERROR: expected 'CAPTURE'
39 !ERROR: expected 'READ'
40 !$omp atomic num_threads(4)
43 !ERROR: expected end of line
44 !$omp atomic capture num_threads(4)
50 !ERROR: expected 'UPDATE'
51 !ERROR: expected 'WRITE'
52 !ERROR: expected 'CAPTURE'
53 !ERROR: expected 'READ'
54 !$omp atomic num_threads write