1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -fopenmp
3 ! 2.15.3.6 Reduction Clause
10 !ERROR: 'k' appears in more than one data-sharing clause on the same OpenMP directive
11 !$omp parallel do reduction(+:k), reduction(-:k)
17 !ERROR: 'k' appears in more than one data-sharing clause on the same OpenMP directive
18 !$omp parallel do reduction(+:k), reduction(-:j), reduction(+:k)
24 !ERROR: 'k' appears in more than one data-sharing clause on the same OpenMP directive
25 !$omp parallel do reduction(+:j), reduction(-:k), reduction(+:k)
31 !ERROR: 'k' appears in more than one data-sharing clause on the same OpenMP directive
32 !$omp parallel do reduction(+:j), reduction(-:k), private(k)
37 end program omp_reduction