1 !RUN: %python %S/../test_errors.py %s %flang -fopenmp
3 ! 2.15.3.1 default Clause
5 integer :: a(10), b(10), c(10),i
,k
6 !ERROR: At most one DEFAULT clause can appear on the PARALLEL directive
7 !$omp parallel default(shared), default(private)
13 !ERROR: At most one DEFAULT clause can appear on the TASK directive
14 !$omp task default(shared), default(none), shared(a,b,c,k,i)
16 c(i
) = a(i
) + b(i
) + k
20 !ERROR: At most one DEFAULT clause can appear on the TASKLOOP directive
21 !$omp taskloop default(shared), default(private)
23 c(i
) = a(i
) + b(i
) + k
27 !ERROR: At most one DEFAULT clause can appear on the TEAMS directive
28 !$omp teams default(shared), default(none), shared(i,a,b,k,c)
30 c(i
) = a(i
) + b(i
) + k
34 end program omp_default