2 ! { dg-additional-options "-fmax-errors=100" }
6 integer, dimension (*) :: ia1
7 integer, dimension (10) :: ia2
9 real, dimension (5) :: ra1
10 double precision :: d1
11 double precision, dimension (4) :: da1
13 complex, dimension (7) :: ca1
15 logical, dimension (3) :: la1
21 type(t
), dimension (2) :: ta1
22 real, pointer :: p1
=> NULL()
23 integer, allocatable
:: aa1 (:,:)
27 !$acc parallel reduction (+:ia2)
29 !$acc parallel reduction (+:ra1)
31 !$acc parallel reduction (+:ca1)
33 !$acc parallel reduction (+:da1)
35 !$acc parallel reduction (.and.:la1)
37 !$acc parallel reduction (+:i3, r1, d1, c1)
39 !$acc parallel reduction (*:i3, r1, d1, c1)
41 !$acc parallel reduction (-:i3, r1, d1, c1)
43 !$acc parallel reduction (.and.:l1)
45 !$acc parallel reduction (.or.:l1)
47 !$acc parallel reduction (.eqv.:l1)
49 !$acc parallel reduction (.neqv.:l1)
51 !$acc parallel reduction (min:i3, r1, d1)
53 !$acc parallel reduction (max:i3, r1, d1)
55 !$acc parallel reduction (iand:i3)
57 !$acc parallel reduction (ior:i3)
59 !$acc parallel reduction (ieor:i3)
61 !$acc parallel reduction (+:/blk/) ! { dg-error "Syntax error" }
62 !$acc end parallel ! { dg-error "Unexpected" }
63 !$acc parallel reduction (*:p1) ! { dg-error "POINTER object" }
65 !$acc parallel reduction (-:aa1)
67 !$acc parallel reduction (*:ia1) ! { dg-error "Assumed size" }
69 !$acc parallel reduction (+:l1) ! { dg-error "OMP DECLARE REDUCTION \\+ not found for type LOGICAL" }
71 !$acc parallel reduction (*:la1) ! { dg-error "OMP DECLARE REDUCTION \\* not found for type LOGICAL" }
73 !$acc parallel reduction (-:a1) ! { dg-error "OMP DECLARE REDUCTION - not found for type CHARACTER" }
75 !$acc parallel reduction (+:t1) ! { dg-error "OMP DECLARE REDUCTION \\+ not found for type TYPE" }
77 !$acc parallel reduction (*:ta1) ! { dg-error "OMP DECLARE REDUCTION \\* not found for type TYPE" }
79 !$acc parallel reduction (.and.:i3) ! { dg-error "OMP DECLARE REDUCTION \\.and\\. not found for type INTEGER" }
81 !$acc parallel reduction (.or.:ia2) ! { dg-error "OMP DECLARE REDUCTION \\.or\\. not found for type INTEGER" }
83 !$acc parallel reduction (.eqv.:r1) ! { dg-error "OMP DECLARE REDUCTION \\.eqv\\. not found for type REAL" }
85 !$acc parallel reduction (.neqv.:ra1) ! { dg-error "OMP DECLARE REDUCTION \\.neqv\\. not found for type REAL" }
87 !$acc parallel reduction (.and.:d1) ! { dg-error "OMP DECLARE REDUCTION \\.and\\. not found for type REAL" }
89 !$acc parallel reduction (.or.:da1) ! { dg-error "OMP DECLARE REDUCTION \\.or\\. not found for type REAL" }
91 !$acc parallel reduction (.eqv.:c1) ! { dg-error "OMP DECLARE REDUCTION \\.eqv\\. not found for type COMPLEX" }
93 !$acc parallel reduction (.neqv.:ca1) ! { dg-error "OMP DECLARE REDUCTION \\.neqv\\. not found for type COMPLEX" }
95 !$acc parallel reduction (.and.:a1) ! { dg-error "OMP DECLARE REDUCTION \\.and\\. not found for type CHARACTER" }
97 !$acc parallel reduction (.or.:t1) ! { dg-error "OMP DECLARE REDUCTION \\.or\\. not found for type TYPE" }
99 !$acc parallel reduction (.eqv.:ta1) ! { dg-error "OMP DECLARE REDUCTION \\.eqv\\. not found for type TYPE" }
101 !$acc parallel reduction (min:c1) ! { dg-error "OMP DECLARE REDUCTION min not found for type COMPLEX" }
103 !$acc parallel reduction (max:ca1) ! { dg-error "OMP DECLARE REDUCTION max not found for type COMPLEX" }
105 !$acc parallel reduction (max:l1) ! { dg-error "OMP DECLARE REDUCTION max not found for type LOGICAL" }
107 !$acc parallel reduction (min:la1) ! { dg-error "OMP DECLARE REDUCTION min not found for type LOGICAL" }
109 !$acc parallel reduction (max:a1) ! { dg-error "OMP DECLARE REDUCTION max not found for type CHARACTER" }
111 !$acc parallel reduction (min:t1) ! { dg-error "OMP DECLARE REDUCTION min not found for type TYPE" }
113 !$acc parallel reduction (max:ta1) ! { dg-error "OMP DECLARE REDUCTION max not found for type TYPE" }
115 !$acc parallel reduction (iand:r1) ! { dg-error "OMP DECLARE REDUCTION iand not found for type REAL" }
117 !$acc parallel reduction (ior:ra1) ! { dg-error "OMP DECLARE REDUCTION ior not found for type REAL" }
119 !$acc parallel reduction (ieor:d1) ! { dg-error "OMP DECLARE REDUCTION ieor not found for type REAL" }
121 !$acc parallel reduction (ior:da1) ! { dg-error "OMP DECLARE REDUCTION ior not found for type REAL" }
123 !$acc parallel reduction (iand:c1) ! { dg-error "OMP DECLARE REDUCTION iand not found for type COMPLEX" }
125 !$acc parallel reduction (ior:ca1) ! { dg-error "OMP DECLARE REDUCTION ior not found for type COMPLEX" }
127 !$acc parallel reduction (ieor:l1) ! { dg-error "OMP DECLARE REDUCTION ieor not found for type LOGICAL" }
129 !$acc parallel reduction (iand:la1) ! { dg-error "OMP DECLARE REDUCTION iand not found for type LOGICAL" }
131 !$acc parallel reduction (ior:a1) ! { dg-error "OMP DECLARE REDUCTION ior not found for type CHARACTER" }
133 !$acc parallel reduction (ieor:t1) ! { dg-error "OMP DECLARE REDUCTION ieor not found for type TYPE" }
135 !$acc parallel reduction (iand:ta1) ! { dg-error "OMP DECLARE REDUCTION iand not found for type TYPE" }
140 ! { dg-error "Array 'ia2' is not permitted in reduction" "" { target "*-*-*" } 27 }
141 ! { dg-error "Array 'ra1' is not permitted in reduction" "" { target "*-*-*" } 29 }
142 ! { dg-error "Array 'ca1' is not permitted in reduction" "" { target "*-*-*" } 31 }
143 ! { dg-error "Array 'da1' is not permitted in reduction" "" { target "*-*-*" } 33 }
144 ! { dg-error "Array 'la1' is not permitted in reduction" "" { target "*-*-*" } 35 }
145 ! { dg-error "Array 'aa1' is not permitted in reduction" "" { target "*-*-*" } 65 }
146 ! { dg-error "Array 'ia1' is not permitted in reduction" "" { target "*-*-*" } 67 }
147 ! { dg-error "Array 'la1' is not permitted in reduction" "" { target "*-*-*" } 71 }
148 ! { dg-error "Array 'ta1' is not permitted in reduction" "" { target "*-*-*" } 77 }
149 ! { dg-error "Array 'ia2' is not permitted in reduction" "" { target "*-*-*" } 81 }
150 ! { dg-error "Array 'ra1' is not permitted in reduction" "" { target "*-*-*" } 85 }
151 ! { dg-error "Array 'da1' is not permitted in reduction" "" { target "*-*-*" } 89 }
152 ! { dg-error "Array 'ca1' is not permitted in reduction" "" { target "*-*-*" } 93 }
153 ! { dg-error "Array 'ta1' is not permitted in reduction" "" { target "*-*-*" } 99 }
154 ! { dg-error "Array 'ca1' is not permitted in reduction" "" { target "*-*-*" } 103 }
155 ! { dg-error "Array 'la1' is not permitted in reduction" "" { target "*-*-*" } 107 }
156 ! { dg-error "Array 'ta1' is not permitted in reduction" "" { target "*-*-*" } 113 }
157 ! { dg-error "Array 'ra1' is not permitted in reduction" "" { target "*-*-*" } 117 }
158 ! { dg-error "Array 'da1' is not permitted in reduction" "" { target "*-*-*" } 121 }
159 ! { dg-error "Array 'ca1' is not permitted in reduction" "" { target "*-*-*" } 125 }
160 ! { dg-error "Array 'la1' is not permitted in reduction" "" { target "*-*-*" } 129 }
161 ! { dg-error "Array 'ta1' is not permitted in reduction" "" { target "*-*-*" } 135 }