1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
3 ! 2.15.3.3 private Clause
4 ! Variables that appear in namelist statements may not appear in a private clause.
14 integer :: p(10) ,q(10)
15 namelist /nlist2
/ c
, d
21 !ERROR: Variable 'a' in NAMELIST cannot be in a PRIVATE clause
22 !ERROR: Variable 'c' in NAMELIST cannot be in a PRIVATE clause
23 !$omp parallel private(a, c)
31 namelist /nlist3
/ p
, q
33 !ERROR: Variable 'p' in NAMELIST cannot be in a PRIVATE clause
34 !ERROR: Variable 'd' in NAMELIST cannot be in a PRIVATE clause
35 !$omp parallel private(p, d)
46 end program omp_private