Lines Matching +full:max +full:- +full:parallel
1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 150 -o - %s
2 // RUN: %clang_cc1 -verify -fopenmp -std=c++98 -ferror-limit 150 -o - %s
3 // RUN: %clang_cc1 -verify -fopenmp -std=c++11 -ferror-limit 150 -o - %s
12 struct S1; // expected-note {{declared here}} expected-note 4 {{forward declaration of 'S1'}}
16 …S2 &operator+(const S2 &arg) { return (*this); } // expected-note 3 {{implicitly declared private … in operator +()
21 static float S2s; // expected-note 2 {{static data member is predetermined as shared}}
24 const float S2::S2sc = 0; // expected-note 2 {{'S2sc' defined here}}
25 S2 b; // expected-note 3 {{'b' defined here}}
26 const S2 ba[5]; // expected-note 2 {{'ba' defined here}}
37 S3 c; // expected-note 3 {{'c' defined here}}
38 const S3 ca[5]; // expected-note 2 {{'ca' defined here}}
39 extern const int f; // expected-note 4 {{'f' declared here}}
42 S4(); // expected-note {{implicitly declared private here}}
52 S5() : a(0) {} // expected-note {{implicitly declared private here}} in S5()
59 class S6 { // expected-note 3 {{candidate function (the implicit copy assignment operator) not viab…
61 // expected-note@-2 3 {{candidate function (the implicit move assignment operator) not viable}}
71 #pragma omp threadprivate(h) // expected-note 2 {{defined as threadprivate or thread local}}
73 template <class T> // expected-note {{declared here}}
75 const T d = T(); // expected-note 4 {{'d' defined here}} in tmain()
76 const T da[5] = {T()}; // expected-note 2 {{'da' defined here}} in tmain()
79 T &j = i; // expected-note 4 {{'j' defined here}} in tmain()
80 S3 &p = k; // expected-note 2 {{'p' defined here}} in tmain()
81 const T &r = da[(int)i]; // expected-note 2 {{'r' defined here}} in tmain()
82 T &q = qa[(int)i]; // expected-note 2 {{'q' defined here}} in tmain()
84 #pragma omp parallel in tmain()
85 #pragma omp sections reduction // expected-error {{expected '(' after 'reduction'}} in tmain()
89 #pragma omp parallel in tmain()
90 #pragma omp sections reduction + // expected-error {{expected '(' after 'reduction'}} expected-warn… in tmain()
94 #pragma omp parallel in tmain()
95 …ted-error {{expected unqualified-id}} expected-warning {{missing ':' after reduction identifier - … in tmain()
99 #pragma omp parallel in tmain()
100 …- // expected-warning {{missing ':' after reduction identifier - ignoring}} expected-error {{expec… in tmain()
104 #pragma omp parallel in tmain()
105 …tions reduction() // expected-error {{expected unqualified-id}} expected-warning {{missing ':' aft… in tmain()
109 #pragma omp parallel in tmain()
110 …ma omp sections reduction(*) // expected-warning {{missing ':' after reduction identifier - ignori… in tmain()
114 #pragma omp parallel in tmain()
115 …ions reduction(\) // expected-error {{expected unqualified-id}} expected-warning {{missing ':' aft… in tmain()
119 #pragma omp parallel in tmain()
120 …mp sections reduction(& : argc // expected-error {{expected ')'}} expected-note {{to match this '(… in tmain()
124 #pragma omp parallel in tmain()
125 …(| : argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note… in tmain()
129 #pragma omp parallel in tmain()
130 #pragma omp sections reduction(|| : argc ? i : argc) // expected-error 2 {{expected variable name, … in tmain()
134 #pragma omp parallel in tmain()
135 …-error {{incorrect reduction identifier, expected one of '+', '-', '*', '&', '|', '^', '&&', '||',… in tmain()
139 #pragma omp parallel in tmain()
144 #pragma omp parallel in tmain()
145 #pragma omp sections reduction(^ : T) // expected-error {{'T' does not refer to a value}} in tmain()
149 #pragma omp parallel in tmain()
150 … expected-error {{a reduction list item with incomplete type 'S1'}} expected-error 3 {{const-quali… in tmain()
154 #pragma omp parallel in tmain()
155 …-error {{a reduction list item with incomplete type 'S1'}} expected-error 4 {{arguments of OpenMP … in tmain()
159 #pragma omp parallel in tmain()
160 #pragma omp sections reduction(max : h.b) // expected-error {{expected variable name, array element… in tmain()
164 #pragma omp parallel in tmain()
165 #pragma omp sections reduction(+ : ba) // expected-error {{const-qualified list item cannot be redu… in tmain()
169 #pragma omp parallel in tmain()
170 #pragma omp sections reduction(* : ca) // expected-error {{const-qualified list item cannot be redu… in tmain()
174 #pragma omp parallel in tmain()
175 …gma omp sections reduction(- : da) // expected-error {{const-qualified list item cannot be reducti… in tmain()
179 #pragma omp parallel in tmain()
180 #pragma omp sections reduction(^ : fl) // expected-error {{invalid operands to binary expression ('… in tmain()
184 #pragma omp parallel in tmain()
185 #pragma omp sections reduction(&& : S2::S2s) // expected-error {{shared variable cannot be reductio… in tmain()
189 #pragma omp parallel in tmain()
190 #pragma omp sections reduction(&& : S2::S2sc) // expected-error {{const-qualified list item cannot … in tmain()
194 #pragma omp parallel in tmain()
195 #pragma omp sections reduction(+ : h, k) // expected-error {{threadprivate or thread local variable… in tmain()
199 #pragma omp parallel in tmain()
200 #pragma omp sections reduction(+ : o) // expected-error 2 {{no viable overloaded '='}} in tmain()
204 #pragma omp parallel in tmain()
205 #pragma omp sections private(i), reduction(+ : j), reduction(+ : q) // expected-error 4 {{argument … in tmain()
209 #pragma omp parallel private(k) in tmain()
210 #pragma omp sections reduction(+ : p), reduction(+ : p) // expected-error 2 {{argument of OpenMP cl… in tmain()
214 #pragma omp parallel in tmain()
215 …+ : p), reduction(+ : p) // expected-error 2 {{variable can appear only once in OpenMP 'reduction'… in tmain()
219 #pragma omp parallel in tmain()
220 #pragma omp sections reduction(+ : r) // expected-error 2 {{const-qualified list item cannot be red… in tmain()
224 #pragma omp parallel shared(i) in tmain()
225 #pragma omp parallel reduction(min : i) in tmain()
226 #pragma omp sections reduction(max : j) // expected-error 2 {{argument of OpenMP clause 'reduction'… in tmain()
230 #pragma omp parallel private(fl) // expected-note 2 {{defined as private}} in tmain()
231 #pragma omp sections reduction(+ : fl) // expected-error 2 {{reduction variable must be shared}} in tmain()
235 #pragma omp parallel reduction(* : fl) // expected-note 2 {{defined as reduction}} in tmain()
236 #pragma omp sections reduction(+ : fl) // expected-error 2 {{reduction variable must be shared}} in tmain()
246 #pragma omp threadprivate(x) // expected-note {{defined as threadprivate or thread local}}
253 const int d = 5; // expected-note 2 {{'d' defined here}} in main()
254 const int da[5] = {0}; // expected-note {{'da' defined here}} in main()
259 int &j = i; // expected-note 2 {{'j' defined here}} in main()
260 S3 &p = k; // expected-note 2 {{'p' defined here}} in main()
261 const int &r = da[i]; // expected-note {{'r' defined here}} in main()
262 int &q = qa[i]; // expected-note {{'q' defined here}} in main()
264 #pragma omp parallel in main()
265 #pragma omp sections reduction // expected-error {{expected '(' after 'reduction'}} in main()
269 #pragma omp parallel in main()
270 #pragma omp sections reduction + // expected-error {{expected '(' after 'reduction'}} expected-warn… in main()
274 #pragma omp parallel in main()
275 …ted-error {{expected unqualified-id}} expected-warning {{missing ':' after reduction identifier - … in main()
279 #pragma omp parallel in main()
280 …- // expected-warning {{missing ':' after reduction identifier - ignoring}} expected-error {{expec… in main()
284 #pragma omp parallel in main()
285 …tions reduction() // expected-error {{expected unqualified-id}} expected-warning {{missing ':' aft… in main()
289 #pragma omp parallel in main()
290 …ma omp sections reduction(*) // expected-warning {{missing ':' after reduction identifier - ignori… in main()
294 #pragma omp parallel in main()
295 …ions reduction(\) // expected-error {{expected unqualified-id}} expected-warning {{missing ':' aft… in main()
299 #pragma omp parallel in main()
300 …-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{incorrect reduction i… in main()
304 #pragma omp parallel in main()
305 …sections reduction(| : argc, // expected-error {{expected expression}} expected-error {{expected '… in main()
309 #pragma omp parallel in main()
310 #pragma omp sections reduction(|| : argc > 0 ? argv[1] : argv[2]) // expected-error {{expected vari… in main()
314 #pragma omp parallel in main()
315 #pragma omp sections reduction(~ : argc) // expected-error {{expected unqualified-id}} in main()
319 #pragma omp parallel in main()
324 #pragma omp parallel in main()
325 #pragma omp sections reduction(^ : S1) // expected-error {{'S1' does not refer to a value}} in main()
329 #pragma omp parallel in main()
330 … expected-error {{a reduction list item with incomplete type 'S1'}} expected-error 2 {{const-quali… in main()
334 #pragma omp parallel in main()
335 …-error {{a reduction list item with incomplete type 'S1'}} expected-error 2 {{arguments of OpenMP … in main()
339 #pragma omp parallel in main()
340 #pragma omp sections reduction(max : h.b) // expected-error {{expected variable name, array element… in main()
344 #pragma omp parallel in main()
345 #pragma omp sections reduction(+ : ba) // expected-error {{const-qualified list item cannot be redu… in main()
349 #pragma omp parallel in main()
350 #pragma omp sections reduction(* : ca) // expected-error {{const-qualified list item cannot be redu… in main()
354 #pragma omp parallel in main()
355 #pragma omp sections reduction(- : da) // expected-error {{const-qualified list item cannot be redu… in main()
359 #pragma omp parallel in main()
360 #pragma omp sections reduction(^ : fl) // expected-error {{invalid operands to binary expression ('… in main()
364 #pragma omp parallel in main()
365 #pragma omp sections reduction(&& : S2::S2s) // expected-error {{shared variable cannot be reductio… in main()
369 #pragma omp parallel in main()
370 #pragma omp sections reduction(&& : S2::S2sc) // expected-error {{const-qualified list item cannot … in main()
374 #pragma omp parallel in main()
375 …-error {{calling a private constructor of class 'S4'}} expected-error {{invalid operands to binary… in main()
379 #pragma omp parallel in main()
380 #pragma omp sections reduction(+ : h, k, B::x) // expected-error 2 {{threadprivate or thread local … in main()
384 #pragma omp parallel in main()
385 #pragma omp sections reduction(+ : o) // expected-error {{no viable overloaded '='}} in main()
389 #pragma omp parallel in main()
390 #pragma omp sections private(i), reduction(+ : j), reduction(+ : q) // expected-error 2 {{argument … in main()
394 #pragma omp parallel private(k) in main()
395 #pragma omp sections reduction(+ : p), reduction(+ : p) // expected-error 2 {{argument of OpenMP cl… in main()
399 #pragma omp parallel in main()
400 …(+ : p), reduction(+ : p) // expected-error {{variable can appear only once in OpenMP 'reduction' … in main()
404 #pragma omp parallel in main()
405 #pragma omp sections reduction(+ : r) // expected-error {{const-qualified list item cannot be reduc… in main()
409 #pragma omp parallel shared(i) in main()
410 #pragma omp parallel reduction(min : i) in main()
411 #pragma omp sections reduction(max : j) // expected-error {{argument of OpenMP clause 'reduction' m… in main()
415 #pragma omp parallel private(fl) // expected-note {{defined as private}} in main()
416 #pragma omp sections reduction(+ : fl) // expected-error {{reduction variable must be shared}} in main()
420 #pragma omp parallel reduction(* : fl) // expected-note {{defined as reduction}} in main()
421 #pragma omp sections reduction(+ : fl) // expected-error {{reduction variable must be shared}} in main()
431 …) + tmain(fl); // expected-note {{in instantiation of function template specialization 'tmain<int>… in main()