2 ! { dg-options "-fopenmp -fmax-errors=100" }
3 ! { dg-require-effective-target tls }
7 integer, dimension (*) :: ia1
8 integer, dimension (10) :: ia2
10 real, dimension (5) :: ra1
11 double precision :: d1
12 double precision, dimension (4) :: da1
14 complex, dimension (7) :: ca1
16 logical, dimension (3) :: la1
22 type(t
), dimension (2) :: ta1
23 real, pointer :: p1
=> NULL()
24 integer, allocatable
:: aa1 (:,:)
26 !$omp threadprivate (i2)
29 !$omp parallel reduction (+:i3, ia2, r1, ra1, d1, da1, c1, ca1)
31 !$omp parallel reduction (*:i3, ia2, r1, ra1, d1, da1, c1, ca1)
33 !$omp parallel reduction (-:i3, ia2, r1, ra1, d1, da1, c1, ca1)
35 !$omp parallel reduction (.and.:l1, la1)
37 !$omp parallel reduction (.or.:l1, la1)
39 !$omp parallel reduction (.eqv.:l1, la1)
41 !$omp parallel reduction (.neqv.:l1, la1)
43 !$omp parallel reduction (min:i3, ia2, r1, ra1, d1, da1)
45 !$omp parallel reduction (max:i3, ia2, r1, ra1, d1, da1)
47 !$omp parallel reduction (iand:i3, ia2)
49 !$omp parallel reduction (ior:i3, ia2)
51 !$omp parallel reduction (ieor:i3, ia2)
53 !$omp parallel reduction (+:/blk/) ! { dg-error "Syntax error" }
54 !$omp end parallel ! { dg-error "Unexpected" }
55 !$omp parallel reduction (+:i2) ! { dg-error "THREADPRIVATE object" }
57 !$omp parallel reduction (*:p1) ! { dg-error "POINTER object" }
59 !$omp parallel reduction (-:aa1)
61 !$omp parallel reduction (*:ia1) ! { dg-error "Assumed size" }
63 !$omp parallel reduction (+:l1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
65 !$omp parallel reduction (*:la1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
67 !$omp parallel reduction (-:a1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
69 !$omp parallel reduction (+:t1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
71 !$omp parallel reduction (*:ta1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
73 !$omp parallel reduction (.and.:i3) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
75 !$omp parallel reduction (.or.:ia2) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
77 !$omp parallel reduction (.eqv.:r1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
79 !$omp parallel reduction (.neqv.:ra1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
81 !$omp parallel reduction (.and.:d1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
83 !$omp parallel reduction (.or.:da1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
85 !$omp parallel reduction (.eqv.:c1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
87 !$omp parallel reduction (.neqv.:ca1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
89 !$omp parallel reduction (.and.:a1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
91 !$omp parallel reduction (.or.:t1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
93 !$omp parallel reduction (.eqv.:ta1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
95 !$omp parallel reduction (min:c1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
97 !$omp parallel reduction (max:ca1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
99 !$omp parallel reduction (max:l1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
101 !$omp parallel reduction (min:la1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
103 !$omp parallel reduction (max:a1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
105 !$omp parallel reduction (min:t1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
107 !$omp parallel reduction (max:ta1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
109 !$omp parallel reduction (iand:r1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
111 !$omp parallel reduction (ior:ra1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
113 !$omp parallel reduction (ieor:d1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
115 !$omp parallel reduction (ior:da1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
117 !$omp parallel reduction (iand:c1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
119 !$omp parallel reduction (ior:ca1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
121 !$omp parallel reduction (ieor:l1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
123 !$omp parallel reduction (iand:la1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
125 !$omp parallel reduction (ior:a1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
127 !$omp parallel reduction (ieor:t1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }
129 !$omp parallel reduction (iand:ta1) ! { dg-error "OMP DECLARE REDUCTION\[^\n\r\]*not found for type" }