2 ! { dg-options "-fopenmp -fcray-pointer" }
4 integer :: a
, b
, c
, d
, i
10 !$omp parallel shared (a) ! { dg-error "Cray pointee 'a' in SHARED clause" }
13 !$omp parallel private (b) ! { dg-error "Cray pointee 'b' in PRIVATE clause" }
16 !$omp parallel firstprivate (c) ! { dg-error "Cray pointee 'c' in FIRSTPRIVATE clause" }
19 !$omp parallel do lastprivate (d) ! { dg-error "Cray pointee 'd' in LASTPRIVATE clause" }
25 !$omp parallel reduction (+: a) ! { dg-error "Cray pointee 'a' in REDUCTION clause" }
29 !$omp parallel shared (ip1)
33 !$omp parallel private (ip2, i)
39 !$omp parallel firstprivate (ip3)
42 !$omp parallel do lastprivate (ip4)
44 if (i
.eq
. 10) ip4
= loc (i
)
48 !$omp parallel reduction (+: ip1) ! { dg-error "Cray pointer 'ip1' in REDUCTION clause" }