1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
2 ! This is not actually disallowed by the OpenMP standard, but it is not allowed
3 ! for privatisation - this seems like an oversight.
13 integer :: p(10) ,q(10)
14 namelist /nlist2
/ c
, d
20 !ERROR: Variable 'd' in NAMELIST cannot be in a REDUCTION clause
21 !ERROR: Variable 'a' in NAMELIST cannot be in a REDUCTION clause
22 !$omp parallel reduction(+:d) reduction(+:a)
31 namelist /nlist3
/ p
, q
33 !ERROR: Variable 'p' in NAMELIST cannot be in a REDUCTION clause
34 !ERROR: Variable 'q' in NAMELIST cannot be in a REDUCTION clause
35 !$omp parallel reduction(+:p) reduction(+:q)
46 end program omp_reduction