• Home
  • Raw
  • Download

Lines Matching +full:- +full:i

1 // RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s
3 // expected-error@+1 {{unexpected OpenMP directive '#pragma omp simd'}}
6 // expected-error@+1 {{unexpected OpenMP directive '#pragma omp simd'}}
9 // expected-error@+1 {{unexpected OpenMP directive '#pragma omp simd'}}
13 int i; in test_no_clause() local
15 for (i = 0; i < 16; ++i) in test_no_clause()
18 // expected-error@+2 {{statement after '#pragma omp simd' must be a for loop}} in test_no_clause()
20 ++i; in test_no_clause()
24 int i = 0; in test_branch_protected_scope() local
26 ++i; in test_branch_protected_scope()
31 for (i = 0; i < 16; ++i) { in test_branch_protected_scope()
32 if (i == 5) in test_branch_protected_scope()
33 goto L1; // expected-error {{use of undeclared label 'L1'}} in test_branch_protected_scope()
34 else if (i == 6) in test_branch_protected_scope()
35 return; // expected-error {{cannot return from OpenMP region}} in test_branch_protected_scope()
36 else if (i == 7) in test_branch_protected_scope()
38 else if (i == 8) { in test_branch_protected_scope()
40 x[i]++; in test_branch_protected_scope()
45 goto L2; // expected-error {{use of undeclared label 'L2'}} in test_branch_protected_scope()
51 int i; in test_invalid_clause() local
52 // expected-warning@+1 {{extra tokens at the end of '#pragma omp simd' are ignored}} in test_invalid_clause()
54 for (i = 0; i < 16; ++i) in test_invalid_clause()
59 int i, x; in test_non_identifiers() local
61 // expected-warning@+1 {{extra tokens at the end of '#pragma omp simd' are ignored}} in test_non_identifiers()
63 for (i = 0; i < 16; ++i) in test_non_identifiers()
65 // expected-error@+2 {{unexpected OpenMP clause 'firstprivate' in directive '#pragma omp simd'}} in test_non_identifiers()
66 // expected-warning@+1 {{extra tokens at the end of '#pragma omp simd' are ignored}} in test_non_identifiers()
68 for (i = 0; i < 16; ++i) in test_non_identifiers()
71 // expected-warning@+1 {{extra tokens at the end of '#pragma omp simd' are ignored}} in test_non_identifiers()
73 for (i = 0; i < 16; ++i) in test_non_identifiers()
76 // expected-warning@+1 {{extra tokens at the end of '#pragma omp simd' are ignored}} in test_non_identifiers()
78 for (i = 0; i < 16; ++i) in test_non_identifiers()
84 int i; in test_safelen() local
85 // expected-error@+1 {{expected '('}} in test_safelen()
87 for (i = 0; i < 16; ++i) in test_safelen()
89 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_safelen()
91 for (i = 0; i < 16; ++i) in test_safelen()
93 // expected-error@+1 {{expected expression}} in test_safelen()
95 for (i = 0; i < 16; ++i) in test_safelen()
97 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_safelen()
99 for (i = 0; i < 16; ++i) in test_safelen()
101 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {… in test_safelen()
103 for (i = 0; i < 16; ++i) in test_safelen()
105 // expected-warning@+2 {{extra tokens at the end of '#pragma omp simd' are ignored}} in test_safelen()
106 // expected-error@+1 {{expected '('}} in test_safelen()
108 for (i = 0; i < 16; ++i) in test_safelen()
110 // expected-error@+2 {{expected ')'}} in test_safelen()
111 // expected-note@+1 {{to match this '('}} in test_safelen()
113 for (i = 0; i < 16; ++i) in test_safelen()
115 // expected-error@+2 {{expected ')'}} in test_safelen()
116 // expected-note@+1 {{to match this '('}} in test_safelen()
118 for (i = 0; i < 16; ++i) in test_safelen()
120 // expected-error@+2 {{expected ')'}} in test_safelen()
121 // expected-note@+1 {{to match this '('}} in test_safelen()
123 for (i = 0; i < 16; ++i) in test_safelen()
125 // xxpected-error@+1 {{expected expression}} in test_safelen()
127 for (i = 0; i < 16; ++i) in test_safelen()
129 // expected-error@+2 {{expected ')'}} in test_safelen()
130 // expected-note@+1 {{to match this '('}} in test_safelen()
132 for (i = 0; i < 16; ++i) in test_safelen()
134 // expected-error@+2 {{expected ')'}} in test_safelen()
135 // expected-note@+1 {{to match this '('}} in test_safelen()
137 for (i = 0; i < 16; ++i) in test_safelen()
140 for (i = 0; i < 16; ++i) in test_safelen()
142 // expected-error@+2 {{expected ')'}} in test_safelen()
143 // expected-note@+1 {{to match this '('}} in test_safelen()
145 for (i = 0; i < 16; ++i) in test_safelen()
147 // expected-error@+1 {{expression is not an integer constant expression}} in test_safelen()
149 for (i = 0; i < 16; ++i) in test_safelen()
151 // expected-error@+1 {{expression is not an integer constant expression}} in test_safelen()
153 for (i = 0; i < 16; ++i) in test_safelen()
155 // expected-error@+1 {{argument to 'safelen' clause must be a strictly positive integer value}} in test_safelen()
156 #pragma omp simd safelen(-5) in test_safelen()
157 for (i = 0; i < 16; ++i) in test_safelen()
159 // expected-error@+1 {{argument to 'safelen' clause must be a strictly positive integer value}} in test_safelen()
161 for (i = 0; i < 16; ++i) in test_safelen()
163 // expected-error@+1 {{argument to 'safelen' clause must be a strictly positive integer value}} in test_safelen()
164 #pragma omp simd safelen(5 - 5) in test_safelen()
165 for (i = 0; i < 16; ++i) in test_safelen()
170 int i; in test_simdlen() local
171 // expected-error@+1 {{expected '('}} in test_simdlen()
173 for (i = 0; i < 16; ++i) in test_simdlen()
175 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_simdlen()
177 for (i = 0; i < 16; ++i) in test_simdlen()
179 // expected-error@+1 {{expected expression}} in test_simdlen()
181 for (i = 0; i < 16; ++i) in test_simdlen()
183 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_simdlen()
185 for (i = 0; i < 16; ++i) in test_simdlen()
187 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {… in test_simdlen()
189 for (i = 0; i < 16; ++i) in test_simdlen()
191 // expected-warning@+2 {{extra tokens at the end of '#pragma omp simd' are ignored}} in test_simdlen()
192 // expected-error@+1 {{expected '('}} in test_simdlen()
194 for (i = 0; i < 16; ++i) in test_simdlen()
196 // expected-error@+2 {{expected ')'}} in test_simdlen()
197 // expected-note@+1 {{to match this '('}} in test_simdlen()
199 for (i = 0; i < 16; ++i) in test_simdlen()
201 // expected-error@+2 {{expected ')'}} in test_simdlen()
202 // expected-note@+1 {{to match this '('}} in test_simdlen()
204 for (i = 0; i < 16; ++i) in test_simdlen()
206 // expected-error@+2 {{expected ')'}} in test_simdlen()
207 // expected-note@+1 {{to match this '('}} in test_simdlen()
209 for (i = 0; i < 16; ++i) in test_simdlen()
212 for (i = 0; i < 16; ++i) in test_simdlen()
214 // expected-error@+2 {{expected ')'}} in test_simdlen()
215 // expected-note@+1 {{to match this '('}} in test_simdlen()
217 for (i = 0; i < 16; ++i) in test_simdlen()
219 // expected-error@+2 {{expected ')'}} in test_simdlen()
220 // expected-note@+1 {{to match this '('}} in test_simdlen()
222 for (i = 0; i < 16; ++i) in test_simdlen()
225 for (i = 0; i < 16; ++i) in test_simdlen()
227 // expected-error@+2 {{expected ')'}} in test_simdlen()
228 // expected-note@+1 {{to match this '('}} in test_simdlen()
230 for (i = 0; i < 16; ++i) in test_simdlen()
232 // expected-error@+1 {{expression is not an integer constant expression}} in test_simdlen()
234 for (i = 0; i < 16; ++i) in test_simdlen()
236 // expected-error@+1 {{expression is not an integer constant expression}} in test_simdlen()
238 for (i = 0; i < 16; ++i) in test_simdlen()
240 // expected-error@+1 {{argument to 'simdlen' clause must be a strictly positive integer value}} in test_simdlen()
241 #pragma omp simd simdlen(-5) in test_simdlen()
242 for (i = 0; i < 16; ++i) in test_simdlen()
244 // expected-error@+1 {{argument to 'simdlen' clause must be a strictly positive integer value}} in test_simdlen()
246 for (i = 0; i < 16; ++i) in test_simdlen()
248 // expected-error@+1 {{argument to 'simdlen' clause must be a strictly positive integer value}} in test_simdlen()
249 #pragma omp simd simdlen(5 - 5) in test_simdlen()
250 for (i = 0; i < 16; ++i) in test_simdlen()
255 int i; in test_safelen_simdlen() local
256 // expected-error@+1 {{the value of 'simdlen' parameter must be less than or equal to the value of … in test_safelen_simdlen()
258 for (i = 0; i < 16; ++i) in test_safelen_simdlen()
260 // expected-error@+1 {{the value of 'simdlen' parameter must be less than or equal to the value of … in test_safelen_simdlen()
262 for (i = 0; i < 16; ++i) in test_safelen_simdlen()
267 int i; in test_collapse() local
268 // expected-error@+1 {{expected '('}} in test_collapse()
270 for (i = 0; i < 16; ++i) in test_collapse()
272 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_collapse()
274 for (i = 0; i < 16; ++i) in test_collapse()
276 // expected-error@+1 {{expected expression}} in test_collapse()
278 for (i = 0; i < 16; ++i) in test_collapse()
280 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_collapse()
282 for (i = 0; i < 16; ++i) in test_collapse()
284 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {… in test_collapse()
286 for (i = 0; i < 16; ++i) in test_collapse()
288 // expected-warning@+2 {{extra tokens at the end of '#pragma omp simd' are ignored}} in test_collapse()
289 // expected-error@+1 {{expected '('}} in test_collapse()
291 for (i = 0; i < 16; ++i) in test_collapse()
293 // expected-error@+2 {{expected ')'}} in test_collapse()
294 // expected-note@+1 {{to match this '('}} expected-note@+1 {{as specified in 'collapse' clause}} in test_collapse()
296 for (i = 0; i < 16; ++i) in test_collapse()
297 ; // expected-error {{expected 4 for loops after '#pragma omp simd', but found only 1}} in test_collapse()
298 // expected-error@+2 {{expected ')'}} in test_collapse()
299 // expected-note@+1 {{to match this '('}} expected-note@+1 {{as specified in 'collapse' clause}} in test_collapse()
301 for (i = 0; i < 16; ++i) in test_collapse()
302 ; // expected-error {{expected 4 for loops after '#pragma omp simd', but found only 1}} in test_collapse()
303 // expected-error@+2 {{expected ')'}} in test_collapse()
304 // expected-note@+1 {{to match this '('}} expected-note@+1 {{as specified in 'collapse' clause}} in test_collapse()
306 for (i = 0; i < 16; ++i) in test_collapse()
307 ; // expected-error {{expected 4 for loops after '#pragma omp simd', but found only 1}} in test_collapse()
308 // xxpected-error@+1 {{expected expression}} expected-note@+1 {{as specified in 'collapse' clause}} in test_collapse()
310 for (i = 0; i < 16; ++i) in test_collapse()
311 ; // expected-error {{expected 4 for loops after '#pragma omp simd', but found only 1}} in test_collapse()
312 // expected-error@+2 {{expected ')'}} in test_collapse()
313 // expected-note@+1 {{to match this '('}} expected-note@+1 {{as specified in 'collapse' clause}} in test_collapse()
315 for (i = 0; i < 16; ++i) in test_collapse()
316 ; // expected-error {{expected 4 for loops after '#pragma omp simd', but found only 1}} in test_collapse()
317 // expected-error@+2 {{expected ')'}} in test_collapse()
318 // expected-note@+1 {{to match this '('}} expected-note@+1 {{as specified in 'collapse' clause}} in test_collapse()
320 for (i = 0; i < 16; ++i) in test_collapse()
321 ; // expected-error {{expected 4 for loops after '#pragma omp simd', but found only 1}} in test_collapse()
328 // expected-error@+2 {{expected ')'}} in test_collapse()
329 // expected-note@+1 {{to match this '('}} expected-note@+1 {{as specified in 'collapse' clause}} in test_collapse()
331 for (i = 0; i < 16; ++i) in test_collapse()
332 ; // expected-error {{expected 4 for loops after '#pragma omp simd', but found only 1}} in test_collapse()
333 // expected-error@+1 {{expression is not an integer constant expression}} in test_collapse()
335 for (i = 0; i < 16; ++i) in test_collapse()
337 // expected-error@+1 {{expression is not an integer constant expression}} in test_collapse()
339 for (i = 0; i < 16; ++i) in test_collapse()
341 // expected-error@+1 {{argument to 'collapse' clause must be a strictly positive integer value}} in test_collapse()
342 #pragma omp simd collapse(-5) in test_collapse()
343 for (i = 0; i < 16; ++i) in test_collapse()
345 // expected-error@+1 {{argument to 'collapse' clause must be a strictly positive integer value}} in test_collapse()
347 for (i = 0; i < 16; ++i) in test_collapse()
349 // expected-error@+1 {{argument to 'collapse' clause must be a strictly positive integer value}} in test_collapse()
350 #pragma omp simd collapse(5 - 5) in test_collapse()
351 for (i = 0; i < 16; ++i) in test_collapse()
353 // expected-note@+2 {{defined as reduction}} in test_collapse()
355 #pragma omp simd collapse(2) reduction(+ : i) in test_collapse()
356 for (i = 0; i < 16; ++i) in test_collapse()
357 …// expected-note@+1 {{variable with automatic storage duration is predetermined as private; perhap… in test_collapse()
359 // expected-error@+2 2 {{reduction variable must be shared}} in test_collapse()
360 // expected-error@+1 {{OpenMP constructs may not be nested inside a simd region}} in test_collapse()
361 #pragma omp for reduction(+ : i, j) in test_collapse()
363 i += j; in test_collapse()
366 for (i = 0; i < 16; ++i) in test_collapse()
368 #pragma omp simd reduction(+ : i, j) in test_collapse()
370 i += j; in test_collapse()
374 int i; in test_linear() local
375 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_linear()
377 for (i = 0; i < 16; ++i) in test_linear()
379 // expected-error@+2 {{expected expression}} in test_linear()
380 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_linear()
382 for (i = 0; i < 16; ++i) in test_linear()
384 // expected-error@+2 {{expected expression}} in test_linear()
385 // expected-error@+1 {{expected expression}} in test_linear()
387 for (i = 0; i < 16; ++i) in test_linear()
389 // expected-error@+1 {{expected expression}} in test_linear()
391 for (i = 0; i < 16; ++i) in test_linear()
393 // expected-error@+1 {{expected expression}} in test_linear()
395 for (i = 0; i < 16; ++i) in test_linear()
397 // expected-error@+1 {{expected variable name}} in test_linear()
399 for (i = 0; i < 16; ++i) in test_linear()
401 // expected-error@+1 {{use of undeclared identifier 'x'}} in test_linear()
403 for (i = 0; i < 16; ++i) in test_linear()
405 // expected-error@+2 {{use of undeclared identifier 'x'}} in test_linear()
406 // expected-error@+1 {{use of undeclared identifier 'y'}} in test_linear()
408 for (i = 0; i < 16; ++i) in test_linear()
410 // expected-error@+3 {{use of undeclared identifier 'x'}} in test_linear()
411 // expected-error@+2 {{use of undeclared identifier 'y'}} in test_linear()
412 // expected-error@+1 {{use of undeclared identifier 'z'}} in test_linear()
414 for (i = 0; i < 16; ++i) in test_linear()
418 // expected-error@+1 {{expected expression}} in test_linear()
420 for (i = 0; i < 16; ++i) in test_linear()
422 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_linear()
424 for (i = 0; i < 16; ++i) in test_linear()
427 for (i = 0; i < 16; ++i) in test_linear()
430 for (i = 0; i < 16; ++i) in test_linear()
432 // expected-error@+1 {{expected ')'}} expected-note@+1 {{to match this '('}} in test_linear()
434 for (i = 0; i < 16; ++i) in test_linear()
436 // expected-error@+1 {{expected ')'}} expected-note@+1 {{to match this '('}} in test_linear()
438 for (i = 0; i < 16; ++i) in test_linear()
441 // expected-note@+2 {{defined as linear}} in test_linear()
442 // expected-error@+1 {{linear variable cannot be linear}} in test_linear()
444 for (i = 0; i < 16; ++i) in test_linear()
447 // expected-note@+2 {{defined as private}} in test_linear()
448 // expected-error@+1 {{private variable cannot be linear}} in test_linear()
450 for (i = 0; i < 16; ++i) in test_linear()
453 // expected-note@+2 {{defined as linear}} in test_linear()
454 // expected-error@+1 {{linear variable cannot be private}} in test_linear()
456 for (i = 0; i < 16; ++i) in test_linear()
459 // expected-warning@+1 {{zero linear step (x and other variables in clause should probably be const… in test_linear()
461 for (i = 0; i < 16; ++i) in test_linear()
464 // expected-note@+2 {{defined as linear}} in test_linear()
465 // expected-error@+1 {{linear variable cannot be lastprivate}} in test_linear()
467 for (i = 0; i < 16; ++i) in test_linear()
470 // expected-note@+2 {{defined as lastprivate}} in test_linear()
471 // expected-error@+1 {{lastprivate variable cannot be linear}} in test_linear()
473 for (i = 0; i < 16; ++i) in test_linear()
478 int i; in test_aligned() local
479 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_aligned()
481 for (i = 0; i < 16; ++i) in test_aligned()
483 // expected-error@+2 {{expected expression}} in test_aligned()
484 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_aligned()
486 for (i = 0; i < 16; ++i) in test_aligned()
488 // expected-error@+2 {{expected expression}} in test_aligned()
489 // expected-error@+1 {{expected expression}} in test_aligned()
491 for (i = 0; i < 16; ++i) in test_aligned()
493 // expected-error@+1 {{expected expression}} in test_aligned()
495 for (i = 0; i < 16; ++i) in test_aligned()
497 // expected-error@+1 {{expected expression}} in test_aligned()
499 for (i = 0; i < 16; ++i) in test_aligned()
501 // expected-error@+1 {{expected variable name}} in test_aligned()
503 for (i = 0; i < 16; ++i) in test_aligned()
505 // expected-error@+1 {{use of undeclared identifier 'x'}} in test_aligned()
507 for (i = 0; i < 16; ++i) in test_aligned()
509 // expected-error@+2 {{use of undeclared identifier 'x'}} in test_aligned()
510 // expected-error@+1 {{use of undeclared identifier 'y'}} in test_aligned()
512 for (i = 0; i < 16; ++i) in test_aligned()
514 // expected-error@+3 {{use of undeclared identifier 'x'}} in test_aligned()
515 // expected-error@+2 {{use of undeclared identifier 'y'}} in test_aligned()
516 // expected-error@+1 {{use of undeclared identifier 'z'}} in test_aligned()
518 for (i = 0; i < 16; ++i) in test_aligned()
521 int *x, y, z[25]; // expected-note 4 {{'y' defined here}} in test_aligned()
523 for (i = 0; i < 16; ++i) in test_aligned()
526 for (i = 0; i < 16; ++i) in test_aligned()
528 // expected-error@+1 {{expected expression}} in test_aligned()
530 for (i = 0; i < 16; ++i) in test_aligned()
532 // expected-error@+1 {{expected expression}} expected-error@+1 {{expected ')'}} expected-note@+1 {{… in test_aligned()
534 for (i = 0; i < 16; ++i) in test_aligned()
537 for (i = 0; i < 16; ++i) in test_aligned()
540 for (i = 0; i < 16; ++i) in test_aligned()
542 // expected-error@+1 {{expected ')'}} expected-note@+1 {{to match this '('}} in test_aligned()
544 for (i = 0; i < 16; ++i) in test_aligned()
546 // expected-error@+1 {{expected ')'}} expected-note@+1 {{to match this '('}} in test_aligned()
548 for (i = 0; i < 16; ++i) in test_aligned()
551 // expected-error@+1 {{argument of aligned clause should be array or pointer, not 'int'}} in test_aligned()
553 for (i = 0; i < 16; ++i) in test_aligned()
555 // expected-error@+1 {{argument of aligned clause should be array or pointer, not 'int'}} in test_aligned()
557 for (i = 0; i < 16; ++i) in test_aligned()
560 // expected-note@+2 {{defined as aligned}} in test_aligned()
561 // expected-error@+1 {{a variable cannot appear in more than one aligned clause}} in test_aligned()
563 for (i = 0; i < 16; ++i) in test_aligned()
566 // expected-note@+3 {{defined as aligned}} in test_aligned()
567 // expected-error@+2 {{a variable cannot appear in more than one aligned clause}} in test_aligned()
568 // expected-error@+1 2 {{argument of aligned clause should be array or pointer, not 'int'}} in test_aligned()
570 for (i = 0; i < 16; ++i) in test_aligned()
575 int i; in test_private() local
576 // expected-error@+2 {{expected expression}} in test_private()
577 // expected-error@+1 {{expected ')'}} expected-note@+1 {{to match this '('}} in test_private()
579 for (i = 0; i < 16; ++i) in test_private()
581 // expected-error@+2 {{expected ')'}} expected-note@+2 {{to match this '('}} in test_private()
582 // expected-error@+1 2 {{expected expression}} in test_private()
584 for (i = 0; i < 16; ++i) in test_private()
586 // expected-error@+1 2 {{expected expression}} in test_private()
588 for (i = 0; i < 16; ++i) in test_private()
590 // expected-error@+1 {{expected expression}} in test_private()
592 for (i = 0; i < 16; ++i) in test_private()
594 // expected-error@+1 {{expected expression}} in test_private()
596 for (i = 0; i < 16; ++i) in test_private()
598 // expected-error@+1 {{expected variable name}} in test_private()
600 for (i = 0; i < 16; ++i) in test_private()
605 for (i = 0; i < 16; ++i) in test_private()
608 for (i = 0; i < 16; ++i) in test_private()
611 for (i = 0; i < 16; ++i) { in test_private()
612 x = y * i + z; in test_private()
617 int i; in test_firstprivate() local
618 // expected-error@+3 {{expected ')'}} expected-note@+3 {{to match this '('}} in test_firstprivate()
619 // expected-error@+2 {{unexpected OpenMP clause 'firstprivate' in directive '#pragma omp simd'}} in test_firstprivate()
620 // expected-error@+1 {{expected expression}} in test_firstprivate()
622 for (i = 0; i < 16; ++i) in test_firstprivate()
627 int i; in test_lastprivate() local
628 // expected-error@+2 {{expected ')'}} expected-note@+2 {{to match this '('}} in test_lastprivate()
629 // expected-error@+1 {{expected expression}} in test_lastprivate()
631 for (i = 0; i < 16; ++i) in test_lastprivate()
634 // expected-error@+2 {{expected ')'}} expected-note@+2 {{to match this '('}} in test_lastprivate()
635 // expected-error@+1 2 {{expected expression}} in test_lastprivate()
637 for (i = 0; i < 16; ++i) in test_lastprivate()
639 // expected-error@+1 2 {{expected expression}} in test_lastprivate()
641 for (i = 0; i < 16; ++i) in test_lastprivate()
643 // expected-error@+1 {{expected expression}} in test_lastprivate()
645 for (i = 0; i < 16; ++i) in test_lastprivate()
647 // expected-error@+1 {{expected expression}} in test_lastprivate()
649 for (i = 0; i < 16; ++i) in test_lastprivate()
651 // expected-error@+1 {{expected variable name}} in test_lastprivate()
653 for (i = 0; i < 16; ++i) in test_lastprivate()
658 for (i = 0; i < 16; ++i) in test_lastprivate()
661 for (i = 0; i < 16; ++i) in test_lastprivate()
664 for (i = 0; i < 16; ++i) in test_lastprivate()
669 int i, x, y; in test_reduction() local
670 // expected-error@+3 {{expected ')'}} expected-note@+3 {{to match this '('}} in test_reduction()
671 // expected-error@+2 {{expected identifier}} in test_reduction()
672 // expected-warning@+1 {{missing ':' after reduction identifier - ignoring}} in test_reduction()
674 for (i = 0; i < 16; ++i) in test_reduction()
676 // expected-error@+2 {{expected identifier}} in test_reduction()
677 // expected-warning@+1 {{missing ':' after reduction identifier - ignoring}} in test_reduction()
679 for (i = 0; i < 16; ++i) in test_reduction()
681 // expected-error@+2 {{expected expression}} in test_reduction()
682 // expected-warning@+1 {{missing ':' after reduction identifier - ignoring}} in test_reduction()
684 for (i = 0; i < 16; ++i) in test_reduction()
686 // expected-error@+1 {{expected identifier}} in test_reduction()
688 for (i = 0; i < 16; ++i) in test_reduction()
690 // expected-error@+3 {{expected ')'}} expected-note@+3 {{to match this '('}} in test_reduction()
691 // expected-error@+2 {{expected identifier}} in test_reduction()
692 // expected-warning@+1 {{missing ':' after reduction identifier - ignoring}} in test_reduction()
694 for (i = 0; i < 16; ++i) in test_reduction()
696 // expected-error@+3 {{expected ')'}} expected-note@+3 {{to match this '('}} in test_reduction()
697 // expected-error@+2 {{expected expression}} in test_reduction()
698 // expected-warning@+1 {{missing ':' after reduction identifier - ignoring}} in test_reduction()
700 for (i = 0; i < 16; ++i) in test_reduction()
703 // expected-error@+3 {{expected ')'}} expected-note@+3 {{to match this '('}} in test_reduction()
705 // expected-error@+1 {{expected expression}} in test_reduction()
707 for (i = 0; i < 16; ++i) in test_reduction()
709 // expected-error@+1 {{expected expression}} in test_reduction()
711 for (i = 0; i < 16; ++i) in test_reduction()
713 // expected-error@+1 {{expected expression}} in test_reduction()
715 for (i = 0; i < 16; ++i) in test_reduction()
717 // expected-error@+1 {{expected expression}} in test_reduction()
719 for (i = 0; i < 16; ++i) in test_reduction()
721 // expected-error@+1 {{expected identifier}} in test_reduction()
723 for (i = 0; i < 16; ++i) in test_reduction()
727 for (i = 0; i < 16; ++i) in test_reduction()
730 for (i = 0; i < 16; ++i) in test_reduction()
732 #pragma omp simd reduction(- : x) in test_reduction()
733 for (i = 0; i < 16; ++i) in test_reduction()
736 for (i = 0; i < 16; ++i) in test_reduction()
739 for (i = 0; i < 16; ++i) in test_reduction()
742 for (i = 0; i < 16; ++i) in test_reduction()
745 for (i = 0; i < 16; ++i) in test_reduction()
748 for (i = 0; i < 16; ++i) in test_reduction()
751 for (i = 0; i < 16; ++i) in test_reduction()
754 for (i = 0; i < 16; ++i) in test_reduction()
760 // expected-error@+1 {{expected variable name}} in test_reduction()
762 for (i = 0; i < 16; ++i) in test_reduction()
764 // expected-error@+1 {{expected variable name}} in test_reduction()
766 for (i = 0; i < 16; ++i) in test_reduction()
772 // expected-error@+2 {{variable must be of integer or pointer type}} in test_loop_messages()
777 // expected-error@+2 {{variable must be of integer or pointer type}} in test_loop_messages()
790 #pragma omp simd linear(uval(f)) // expected-error {{expected 'val' modifier}} in linear_modifiers()
792 #pragma omp simd linear(ref(f)) // expected-error {{expected 'val' modifier}} in linear_modifiers()
794 #pragma omp simd linear(foo(f)) // expected-error {{expected 'val' modifier}} in linear_modifiers()