1 ! RUN: %S/test_errors.sh %s %t %flang -fopenmp
4 ! 2.15.3.3 private Clause
5 ! Variables that appear in namelist statements may not appear in a private clause.
15 integer :: p(10) ,q(10)
16 namelist /nlist2
/ c
, d
22 !ERROR: Variable 'a' in NAMELIST cannot be in a PRIVATE clause
23 !ERROR: Variable 'c' in NAMELIST cannot be in a PRIVATE clause
24 !$omp parallel private(a, c)
32 namelist /nlist3
/ p
, q
34 !ERROR: Variable 'p' in NAMELIST cannot be in a PRIVATE clause
35 !ERROR: Variable 'd' in NAMELIST cannot be in a PRIVATE clause
36 !$omp parallel private(p, d)
47 end program omp_private