1 ! RUN: %S/test_errors.sh %s %t %flang -fopenmp
4 ! Check OpenMP 2.13.6 atomic Construct
7 !$omp parallel num_threads(4)
8 !$omp atomic seq_cst, read
11 !$omp atomic seq_cst write
15 !$omp atomic read acquire hint(OMP_LOCK_HINT_CONTENDED)
18 !$omp atomic release hint(OMP_LOCK_HINT_UNCONTENDED) write
21 !$omp atomic capture seq_cst
26 !$omp atomic hint(1) acq_rel capture
31 !ERROR: expected end of line
32 !$omp atomic read write
37 !ERROR: expected 'UPDATE'
38 !ERROR: expected 'WRITE'
39 !ERROR: expected 'CAPTURE'
40 !ERROR: expected 'READ'
41 !$omp atomic num_threads(4)
44 !ERROR: expected end of line
45 !$omp atomic capture num_threads(4)
51 !ERROR: expected 'UPDATE'
52 !ERROR: expected 'WRITE'
53 !ERROR: expected 'CAPTURE'
54 !ERROR: expected 'READ'
55 !$omp atomic num_threads write