1 !RUN: %S/test_errors.sh %s %t %flang -fopenmp
4 ! 2.15.3.1 default Clause
6 integer :: a(10), b(10), c(10),i
,k
7 !ERROR: At most one DEFAULT clause can appear on the PARALLEL directive
8 !$omp parallel default(shared), default(private)
10 c(i
) = a(i
) + b(i
) + k
14 !ERROR: At most one DEFAULT clause can appear on the TASK directive
15 !$omp task default(shared), default(none), shared(a,b,c,k,i)
17 c(i
) = a(i
) + b(i
) + k
21 !ERROR: At most one DEFAULT clause can appear on the TASKLOOP directive
22 !$omp taskloop default(shared), default(private)
24 c(i
) = a(i
) + b(i
) + k
28 !ERROR: At most one DEFAULT clause can appear on the TEAMS directive
29 !$omp teams default(shared), default(none), shared(i,a,b,k,c)
31 c(i
) = a(i
) + b(i
) + k
35 end program omp_default