Lines Matching +full:- +full:x
1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s
7 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in foo()
8 // expected-note@+1 {{expected an expression statement}} in foo()
11 goto L1; // expected-error {{use of undeclared label 'L1'}} in foo()
13 goto L2; // expected-error {{use of undeclared label 'L2'}} in foo()
15 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in foo()
16 // expected-note@+1 {{expected an expression statement}} in foo()
43 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
44 // expected-note@+1 {{expected an expression statement}} in read()
47 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
48 // expected-note@+1 {{expected built-in assignment operator}} in read()
51 …// expected-error@+2 2 {{the statement for 'atomic read' must be an expression statement of form '… in read()
52 // expected-note@+1 2 {{expected built-in assignment operator}} in read()
55 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
56 // expected-note@+1 {{expected lvalue expression}} in read()
59 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
60 // expected-note@+1 {{expected built-in assignment operator}} in read()
62 // expected-error@+1 {{directive '#pragma omp atomic' cannot contain more than one 'read' clause}} in read()
64 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
65 // expected-note@+1 {{expected built-in assignment operator}} in read()
75 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
76 // expected-note@+1 {{expected an expression statement}} in read()
79 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
80 // expected-note@+1 {{expected built-in assignment operator}} in read()
83 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
84 // expected-note@+1 {{expected built-in assignment operator}} in read()
87 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
88 // expected-note@+1 {{expected lvalue expression}} in read()
92 // expected-error@+1 {{directive '#pragma omp atomic' cannot contain more than one 'read' clause}} in read()
96 …// expected-note@+2 {{in instantiation of function template specialization 'read<S>' requested her… in read()
97 …// expected-note@+1 {{in instantiation of function template specialization 'read<int>' requested h… in read()
106 …// expected-error@+2 {{the statement for 'atomic write' must be an expression statement of form 'x… in write()
107 // expected-note@+1 {{expected an expression statement}} in write()
109 // expected-error@+1 {{directive '#pragma omp atomic' cannot contain more than one 'write' clause}} in write()
113 …// expected-error@+2 {{the statement for 'atomic write' must be an expression statement of form 'x… in write()
114 // expected-note@+1 {{expected built-in assignment operator}} in write()
117 …// expected-error@+2 {{the statement for 'atomic write' must be an expression statement of form 'x… in write()
118 // expected-note@+1 {{expected built-in assignment operator}} in write()
132 …// expected-error@+2 {{the statement for 'atomic write' must be an expression statement of form 'x… in write()
133 // expected-note@+1 {{expected an expression statement}} in write()
135 // expected-error@+1 {{directive '#pragma omp atomic' cannot contain more than one 'write' clause}} in write()
139 …// expected-error@+2 {{the statement for 'atomic write' must be an expression statement of form 'x… in write()
140 // expected-note@+1 {{expected built-in assignment operator}} in write()
143 …// expected-error@+2 {{the statement for 'atomic write' must be an expression statement of form 'x… in write()
144 // expected-note@+1 {{expected built-in assignment operator}} in write()
151 …// expected-note@+1 {{in instantiation of function template specialization 'write<int>' requested … in write()
160 …-error@+2 {{the statement for 'atomic update' must be an expression statement of form '++x;', '--x… in update()
161 // expected-note@+1 {{expected an expression statement}} in update()
163 // expected-error@+1 {{directive '#pragma omp atomic' cannot contain more than one 'update' clause}} in update()
167 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in update()
168 // expected-note@+1 {{expected built-in binary operator}} in update()
171 …-error@+2 {{the statement for 'atomic update' must be an expression statement of form '++x;', '--x… in update()
172 …// expected-note@+1 {{expected one of '+', '*', '-', '/', '&', '^', '|', '<<', or '>>' built-in op… in update()
175 …-error@+2 {{the statement for 'atomic update' must be an expression statement of form '++x;', '--x… in update()
176 …// expected-note@+1 {{expected one of '+', '*', '-', '/', '&', '^', '|', '<<', or '>>' built-in op… in update()
179 …-error@+2 {{the statement for 'atomic update' must be an expression statement of form '++x;', '--x… in update()
180 // expected-note@+1 {{expected in right hand side of expression}} in update()
183 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in update()
184 // expected-note@+1 {{expected in right hand side of expression}} in update()
187 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in update()
188 // expected-note@+1 {{expected in right hand side of expression}} in update()
197 a--; in update()
199 --a; in update()
207 a -= b; in update()
225 a = b - a; in update()
240 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in update()
241 // expected-note@+1 {{expected an expression statement}} in update()
251 …-error@+2 {{the statement for 'atomic update' must be an expression statement of form '++x;', '--x… in update()
252 // expected-note@+1 {{expected an expression statement}} in update()
254 // expected-error@+1 {{directive '#pragma omp atomic' cannot contain more than one 'update' clause}} in update()
258 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in update()
259 // expected-note@+1 {{expected built-in binary operator}} in update()
262 …-error@+2 {{the statement for 'atomic update' must be an expression statement of form '++x;', '--x… in update()
263 …// expected-note@+1 {{expected one of '+', '*', '-', '/', '&', '^', '|', '<<', or '>>' built-in op… in update()
266 …-error@+2 {{the statement for 'atomic update' must be an expression statement of form '++x;', '--x… in update()
267 …// expected-note@+1 {{expected one of '+', '*', '-', '/', '&', '^', '|', '<<', or '>>' built-in op… in update()
270 …-error@+2 {{the statement for 'atomic update' must be an expression statement of form '++x;', '--x… in update()
271 // expected-note@+1 {{expected in right hand side of expression}} in update()
274 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in update()
275 // expected-note@+1 {{expected in right hand side of expression}} in update()
278 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in update()
279 // expected-note@+1 {{expected in right hand side of expression}} in update()
286 a--; in update()
288 --a; in update()
296 a -= b; in update()
314 a = b - a; in update()
328 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in update()
329 // expected-note@+1 {{expected an expression statement}} in update()
340 …-error@+2 {{the statement for 'atomic capture' must be a compound statement of form '{v = x; x bin… in capture()
341 // expected-note@+1 {{expected compound statement}} in capture()
344 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
345 // expected-note@+1 {{expected assignment expression}} in capture()
348 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
349 // expected-note@+1 {{expected built-in binary or unary operator}} in capture()
352 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
353 // expected-note@+1 {{expected assignment expression}} in capture()
356 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
357 …// expected-note@+1 {{expected one of '+', '*', '-', '/', '&', '^', '|', '<<', or '>>' built-in op… in capture()
360 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
361 // expected-note@+1 {{expected assignment expression}} in capture()
364 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
365 // expected-note@+1 {{expected assignment expression}} in capture()
368 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
369 // expected-note@+1 {{expected assignment expression}} in capture()
372 …-error@+2 {{the statement for 'atomic capture' must be a compound statement of form '{v = x; x bin… in capture()
373 // expected-note@+1 {{expected exactly two expression statements}} in capture()
376 …-error@+2 {{the statement for 'atomic capture' must be a compound statement of form '{v = x; x bin… in capture()
377 // expected-note@+1 {{expected exactly two expression statements}} in capture()
380 …-error@+2 {{the statement for 'atomic capture' must be a compound statement of form '{v = x; x bin… in capture()
381 // expected-note@+1 {{expected in right hand side of the first expression}} in capture()
384 …-error@+2 {{the statement for 'atomic capture' must be a compound statement of form '{v = x; x bin… in capture()
385 // expected-note@+1 {{expected in right hand side of the first expression}} in capture()
390 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
391 // expected-note@+1 {{expected in right hand side of expression}} in capture()
394 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
395 // expected-note@+1 {{expected in right hand side of expression}} in capture()
398 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
399 // expected-note@+1 {{expected in right hand side of expression}} in capture()
408 c = a--; in capture()
410 c = --a; in capture()
418 c = a -= b; in capture()
436 c = a = b - a; in capture()
458 {c = a;a--;} in capture()
460 {--a;c = a;} in capture()
468 {a -= b;c = a;} in capture()
486 {c = a; a = b - a;} in capture()
501 …// expected-error@+1 {{directive '#pragma omp atomic' cannot contain more than one 'capture' claus… in capture()
512 …-error@+2 {{the statement for 'atomic capture' must be a compound statement of form '{v = x; x bin… in capture()
513 // expected-note@+1 {{expected compound statement}} in capture()
516 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
517 // expected-note@+1 {{expected assignment expression}} in capture()
520 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
521 // expected-note@+1 {{expected built-in binary or unary operator}} in capture()
524 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
525 // expected-note@+1 {{expected assignment expression}} in capture()
528 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
529 …// expected-note@+1 {{expected one of '+', '*', '-', '/', '&', '^', '|', '<<', or '>>' built-in op… in capture()
532 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
533 // expected-note@+1 {{expected assignment expression}} in capture()
536 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
537 // expected-note@+1 {{expected assignment expression}} in capture()
540 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
541 // expected-note@+1 {{expected assignment expression}} in capture()
544 …-error@+2 {{the statement for 'atomic capture' must be a compound statement of form '{v = x; x bin… in capture()
545 // expected-note@+1 {{expected exactly two expression statements}} in capture()
548 …-error@+2 {{the statement for 'atomic capture' must be a compound statement of form '{v = x; x bin… in capture()
549 // expected-note@+1 {{expected exactly two expression statements}} in capture()
552 …-error@+2 {{the statement for 'atomic capture' must be a compound statement of form '{v = x; x bin… in capture()
553 // expected-note@+1 {{expected in right hand side of the first expression}} in capture()
556 …-error@+2 {{the statement for 'atomic capture' must be a compound statement of form '{v = x; x bin… in capture()
557 // expected-note@+1 {{expected in right hand side of the first expression}} in capture()
562 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
563 // expected-note@+1 {{expected in right hand side of expression}} in capture()
566 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
567 // expected-note@+1 {{expected in right hand side of expression}} in capture()
570 …-error@+2 {{the statement for 'atomic capture' must be an expression statement of form 'v = ++x;',… in capture()
571 // expected-note@+1 {{expected in right hand side of expression}} in capture()
580 c = a--; in capture()
582 c = --a; in capture()
590 c = a -= b; in capture()
608 c = a = b - a; in capture()
630 {c = a;a--;} in capture()
632 {--a;c = a;} in capture()
640 {a -= b;c = a;} in capture()
658 {c = a; a = b - a;} in capture()
673 …// expected-error@+1 {{directive '#pragma omp atomic' cannot contain more than one 'capture' claus… in capture()
677 …// expected-note@+1 {{in instantiation of function template specialization 'capture<int>' requeste… in capture()
686 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in seq_cst()
687 // expected-note@+1 {{expected an expression statement}} in seq_cst()
689 // expected-error@+1 {{directive '#pragma omp atomic' cannot contain more than one 'seq_cst' clause… in seq_cst()
694 …-error@+2 {{the statement for 'atomic update' must be an expression statement of form '++x;', '--x… in seq_cst()
695 // expected-note@+1 {{expected an expression statement}} in seq_cst()
705 …-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x+… in seq_cst()
706 // expected-note@+1 {{expected an expression statement}} in seq_cst()
708 // expected-error@+1 {{directive '#pragma omp atomic' cannot contain more than one 'seq_cst' clause… in seq_cst()
713 …-error@+2 {{the statement for 'atomic update' must be an expression statement of form '++x;', '--x… in seq_cst()
714 // expected-note@+1 {{expected an expression statement}} in seq_cst()
723 // expected-error@+2 2 {{directive '#pragma omp atomic' cannot contain more than one 'read', 'write… in mixed()
724 // expected-note@+1 2 {{'read' clause used here}} in mixed()
727 // expected-error@+2 2 {{directive '#pragma omp atomic' cannot contain more than one 'read', 'write… in mixed()
728 // expected-note@+1 2 {{'write' clause used here}} in mixed()
731 // expected-error@+2 2 {{directive '#pragma omp atomic' cannot contain more than one 'read', 'write… in mixed()
732 // expected-note@+1 2 {{'update' clause used here}} in mixed()
735 // expected-error@+2 2 {{directive '#pragma omp atomic' cannot contain more than one 'read', 'write… in mixed()
736 // expected-note@+1 2 {{'capture' clause used here}} in mixed()
744 // expected-error@+2 {{directive '#pragma omp atomic' cannot contain more than one 'read', 'write',… in mixed()
745 // expected-note@+1 {{'read' clause used here}} in mixed()
748 // expected-error@+2 {{directive '#pragma omp atomic' cannot contain more than one 'read', 'write',… in mixed()
749 // expected-note@+1 {{'write' clause used here}} in mixed()
752 // expected-error@+2 {{directive '#pragma omp atomic' cannot contain more than one 'read', 'write',… in mixed()
753 // expected-note@+1 {{'write' clause used here}} in mixed()
756 // expected-error@+2 {{directive '#pragma omp atomic' cannot contain more than one 'read', 'write',… in mixed()
757 // expected-note@+1 {{'write' clause used here}} in mixed()
760 …// expected-note@+1 {{in instantiation of function template specialization 'mixed<int>' requested … in mixed()