1 // RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-version=45 -x c++ -std=c++11 -fexceptions -fcxx-exceptions -verify=expected,omp4 %s -Wuninitialized
2 // RUN: %clang_cc1 -fsyntax-only -fopenmp -x c++ -std=c++11 -fexceptions -fcxx-exceptions -verify=expected,omp5 %s -Wuninitialized
4 // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -fopenmp-version=45 -x c++ -std=c++11 -fexceptions -fcxx-exceptions -verify=expected,omp4 %s -Wuninitialized
5 // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -x c++ -std=c++11 -fexceptions -fcxx-exceptions -verify=expected,omp5 %s -Wuninitialized
13 S(const S
&s
) : a(s
.a
) {}
17 // expected-note@+1 {{defined as threadprivate or thread local}}
18 #pragma omp threadprivate(sii)
21 int test_iteration_spaces() {
23 float a
[N
], b
[N
], c
[N
];
29 for (int i
= 0; i
< 10; i
+= 1) {
34 for (char i
= 0; i
< 10; i
++) {
39 for (char i
= 0; i
< 10; i
+= '\1') {
44 for (long long i
= 0; i
< 10; i
++) {
48 // expected-error@+2 {{expression must have integral or unscoped enumeration type, not 'double'}}
50 for (long long i
= 0; i
< 10; i
+= 1.5) {
55 for (long long i
= 0; i
< 'z'; i
+= 1u) {
59 // expected-error@+2 {{variable must be of integer or random access iterator type}}
61 for (float fi
= 0; fi
< 10.0; fi
++) {
62 c
[(int)fi
] = a
[(int)fi
] + b
[(int)fi
];
65 // expected-error@+2 {{variable must be of integer or random access iterator type}}
67 for (double fi
= 0; fi
< 10.0; fi
++) {
68 c
[(int)fi
] = a
[(int)fi
] + b
[(int)fi
];
71 // expected-error@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
73 for (int &ref
= ii
; ref
< 10; ref
++) {
76 // expected-error@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
78 for (int i
; i
< 10; i
++)
82 // expected-error@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
84 for (int i
= 0, j
= 0; i
< 10; ++i
)
88 // expected-error@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
94 // expected-warning@+3 {{expression result unused}}
95 // expected-error@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
97 for (ii
+ 1; ii
< 10; ++ii
)
101 // expected-error@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
103 for (c
[ii
] = 0; ii
< 10; ++ii
)
107 // Ok to skip parenthesises.
109 for (((ii
)) = 0; ii
< 10; ++ii
)
113 // omp4-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', or '>=') of loop variable 'i'}} omp5-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', '>=', or '!=') of loop variable 'i'}}
115 for (int i
= 0; i
; i
++)
119 // omp4-error@+3 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', or '>=') of loop variable 'i'}} omp5-error@+3 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', '>=', or '!=') of loop variable 'i'}}
120 // expected-error@+2 {{increment clause of OpenMP for loop must perform simple addition or subtraction on loop variable 'i'}}
122 for (int i
= 0; jj
< kk
; ii
++)
126 // omp4-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', or '>=') of loop variable 'i'}} omp5-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', '>=', or '!=') of loop variable 'i'}}
128 for (int i
= 0; !!i
; i
++)
132 // omp4-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', or '>=') of loop variable 'i'}}
134 for (int i
= 0; i
!= 1; i
++)
138 // omp4-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', or '>=') of loop variable 'i'}} omp5-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', '>=', or '!=') of loop variable 'i'}}
140 for (int i
= 0;; i
++)
146 for (int i
= 11; i
> 10; i
--)
152 for (int i
= 0; i
< 10; ++i
)
158 for (ii
= 0; ii
< 10; ++ii
)
162 // expected-error@+2 {{increment clause of OpenMP for loop must perform simple addition or subtraction on loop variable 'ii'}}
164 for (ii
= 0; ii
< 10; ++jj
)
168 // expected-error@+2 {{increment clause of OpenMP for loop must perform simple addition or subtraction on loop variable 'ii'}}
170 for (ii
= 0; ii
< 10; ++++ii
)
174 // Ok but undefined behavior (in general, cannot check that incr
175 // is really loop-invariant).
177 for (ii
= 0; ii
< 10; ii
= ii
+ ii
)
181 // expected-error@+2 {{expression must have integral or unscoped enumeration type, not 'float'}}
183 for (ii
= 0; ii
< 10; ii
= ii
+ 1.0f
)
187 // Ok - step was converted to integer type.
189 for (ii
= 0; ii
< 10; ii
= ii
+ (int)1.1f
)
193 // expected-error@+2 {{increment clause of OpenMP for loop must perform simple addition or subtraction on loop variable 'ii'}}
195 for (ii
= 0; ii
< 10; jj
= ii
+ 2)
199 // expected-warning@+3 {{relational comparison result unused}}
200 // expected-error@+2 {{increment clause of OpenMP for loop must perform simple addition or subtraction on loop variable 'ii'}}
202 for (ii
= 0; ii
<10; jj
> kk
+ 2)
206 // expected-error@+2 {{increment clause of OpenMP for loop must perform simple addition or subtraction on loop variable 'ii'}}
208 for (ii
= 0; ii
< 10;)
212 // expected-warning@+3 {{expression result unused}}
213 // expected-error@+2 {{increment clause of OpenMP for loop must perform simple addition or subtraction on loop variable 'ii'}}
215 for (ii
= 0; ii
< 10; !ii
)
219 // expected-error@+2 {{increment clause of OpenMP for loop must perform simple addition or subtraction on loop variable 'ii'}}
221 for (ii
= 0; ii
< 10; ii
? ++ii
: ++jj
)
225 // expected-error@+2 {{increment clause of OpenMP for loop must perform simple addition or subtraction on loop variable 'ii'}}
227 for (ii
= 0; ii
< 10; ii
= ii
< 10)
231 // expected-note@+3 {{loop step is expected to be positive due to this condition}}
232 // expected-error@+2 {{increment expression must cause 'ii' to increase on each iteration of OpenMP for loop}}
234 for (ii
= 0; ii
< 10; ii
= ii
+ 0)
238 // expected-note@+3 {{loop step is expected to be positive due to this condition}}
239 // expected-error@+2 {{increment expression must cause 'ii' to increase on each iteration of OpenMP for loop}}
241 for (ii
= 0; ii
< 10; ii
= ii
+ (int)(0.8 - 0.45))
245 // expected-note@+3 {{loop step is expected to be positive due to this condition}}
246 // expected-error@+2 {{increment expression must cause 'ii' to increase on each iteration of OpenMP for loop}}
248 for (ii
= 0; (ii
) < 10; ii
-= 25)
252 // expected-note@+3 {{loop step is expected to be positive due to this condition}}
253 // expected-error@+2 {{increment expression must cause 'ii' to increase on each iteration of OpenMP for loop}}
255 for (ii
= 0; (ii
< 10); ii
-= 0)
259 // expected-note@+3 {{loop step is expected to be negative due to this condition}}
260 // expected-error@+2 {{increment expression must cause 'ii' to decrease on each iteration of OpenMP for loop}}
262 for (ii
= 0; ii
> 10; (ii
+= 0))
266 // expected-note@+3 {{loop step is expected to be positive due to this condition}}
267 // expected-error@+2 {{increment expression must cause 'ii' to increase on each iteration of OpenMP for loop}}
269 for (ii
= 0; ii
< 10; (ii
) = (1 - 1) + (ii
))
273 // expected-note@+3 {{loop step is expected to be negative due to this condition}}
274 // expected-error@+2 {{increment expression must cause 'ii' to decrease on each iteration of OpenMP for loop}}
276 for ((ii
= 0); ii
> 10; (ii
-= 0))
280 // expected-note@+3 {{loop step is expected to be positive due to this condition}}
281 // expected-error@+2 {{increment expression must cause 'ii' to increase on each iteration of OpenMP for loop}}
283 for (ii
= 0; (ii
< 10); (ii
-= 0))
287 // expected-note@+2 {{defined as firstprivate}}
288 // expected-error@+2 {{loop iteration variable in the associated loop of 'omp for simd' directive may not be firstprivate, predetermined as linear}}
289 #pragma omp for simd firstprivate(ii)
290 for (ii
= 0; ii
< 10; ii
++)
294 #pragma omp for simd linear(ii)
295 for (ii
= 0; ii
< 10; ii
++)
299 // omp4-note@+2 {{defined as private}}
300 // omp4-error@+2 {{loop iteration variable in the associated loop of 'omp for simd' directive may not be private, predetermined as linear}}
301 #pragma omp for simd private(ii)
302 for (ii
= 0; ii
< 10; ii
++)
306 // omp4-note@+2 {{defined as lastprivate}}
307 // omp4-error@+2 {{loop iteration variable in the associated loop of 'omp for simd' directive may not be lastprivate, predetermined as linear}}
308 #pragma omp for simd lastprivate(ii)
309 for (ii
= 0; ii
< 10; ii
++)
314 // expected-error@+2 {{loop iteration variable in the associated loop of 'omp for simd' directive may not be threadprivate or thread local, predetermined as linear}}
316 for (sii
= 0; sii
< 10; sii
+= 1)
323 for (globalii
= 0; globalii
< 10; globalii
+= 1)
324 c
[globalii
] = a
[globalii
];
329 #pragma omp for simd collapse(2)
330 for (ii
= 0; ii
< 10; ii
+= 1)
331 for (globalii
= 0; globalii
< 10; globalii
+= 1)
332 c
[globalii
] += a
[globalii
] + ii
;
336 // omp4-error@+2 {{statement after '#pragma omp for simd' must be a for loop}}
338 for (auto &item
: a
) {
343 // expected-note@+3 {{loop step is expected to be positive due to this condition}}
344 // expected-error@+2 {{increment expression must cause 'i' to increase on each iteration of OpenMP for loop}}
346 for (unsigned i
= 9; i
< 10; i
--) {
350 int(*lb
)[4] = nullptr;
353 for (int(*p
)[4] = lb
; p
< lb
+ 8; ++p
) {
357 // expected-warning@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
359 for (int a
{0}; a
< 10; ++a
) {
365 // Iterators allowed in openmp for-loops.
367 struct random_access_iterator_tag
{};
368 template <class Iter
>
369 struct iterator_traits
{
370 typedef typename
Iter::difference_type difference_type
;
371 typedef typename
Iter::iterator_category iterator_category
;
373 template <class Iter
>
374 typename iterator_traits
<Iter
>::difference_type
375 distance(Iter first
, Iter last
) { return first
- last
; }
380 Iter0(const Iter0
&) {}
381 Iter0
operator++() { return *this; }
382 Iter0
operator--() { return *this; }
383 bool operator<(Iter0 a
) { return true; }
385 // expected-note@+2 {{candidate function not viable: no known conversion from 'GoodIter' to 'Iter0' for 1st argument}}
386 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'Iter0' for 1st argument}}
387 int operator-(Iter0 a
, Iter0 b
) { return 0; }
390 Iter1(float f
= 0.0f
, double d
= 0.0) {}
391 Iter1(const Iter1
&) {}
392 Iter1
operator++() { return *this; }
393 Iter1
operator--() { return *this; }
394 bool operator<(Iter1 a
) { return true; }
395 bool operator>=(Iter1 a
) { return false; }
400 GoodIter(const GoodIter
&) {}
401 GoodIter(int fst
, int snd
) {}
402 GoodIter
&operator=(const GoodIter
&that
) { return *this; }
403 GoodIter
&operator=(const Iter0
&that
) { return *this; }
404 GoodIter
&operator+=(int x
) { return *this; }
405 explicit GoodIter(void *) {}
406 GoodIter
operator++() { return *this; }
407 GoodIter
operator--() { return *this; }
408 bool operator!() { return true; }
409 bool operator<(GoodIter a
) { return true; }
410 bool operator<=(GoodIter a
) { return true; }
411 bool operator>=(GoodIter a
) { return false; }
412 typedef int difference_type
;
413 typedef std::random_access_iterator_tag iterator_category
;
415 // expected-note@+2 {{candidate function not viable: no known conversion from 'const Iter0' to 'GoodIter' for 2nd argument}}
416 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
417 int operator-(GoodIter a
, GoodIter b
) { return 0; }
418 // expected-note@+1 3 {{candidate function not viable: requires single argument 'a', but 2 arguments were provided}}
419 GoodIter
operator-(GoodIter a
) { return a
; }
420 // expected-note@+2 {{candidate function not viable: no known conversion from 'const Iter0' to 'int' for 2nd argument}}
421 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'GoodIter' for 1st argument}}
422 GoodIter
operator-(GoodIter a
, int v
) { return GoodIter(); }
423 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter0' to 'GoodIter' for 1st argument}}
424 GoodIter
operator+(GoodIter a
, int v
) { return GoodIter(); }
425 // expected-note@+2 {{candidate function not viable: no known conversion from 'GoodIter' to 'int' for 1st argument}}
426 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter1' to 'int' for 1st argument}}
427 GoodIter
operator-(int v
, GoodIter a
) { return GoodIter(); }
428 // expected-note@+1 2 {{candidate function not viable: no known conversion from 'Iter0' to 'int' for 1st argument}}
429 GoodIter
operator+(int v
, GoodIter a
) { return GoodIter(); }
431 int test_with_random_access_iterator() {
436 for (GoodIter I
= begin
; I
< end
; ++I
)
439 // expected-error@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
441 for (GoodIter
&I
= begin
; I
< end
; ++I
)
445 for (GoodIter I
= begin
; I
>= end
; --I
)
448 // expected-warning@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
450 for (GoodIter
I(begin
); I
< end
; ++I
)
453 // expected-warning@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
455 for (GoodIter
I(nullptr); I
< end
; ++I
)
458 // expected-warning@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
460 for (GoodIter
I(0); I
< end
; ++I
)
463 // expected-warning@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
465 for (GoodIter
I(1, 2); I
< end
; ++I
)
469 for (begin
= GoodIter(0); begin
< end
; ++begin
)
472 // expected-error@+3 {{invalid operands to binary expression ('GoodIter' and 'const Iter0')}}
473 // expected-error@+2 {{could not calculate number of iterations calling 'operator-' with upper and lower loop bounds}}
475 for (begin
= begin0
; begin
< end
; ++begin
)
478 // expected-error@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
480 for (++begin
; begin
< end
; ++begin
)
484 for (begin
= end
; begin
< end
; ++begin
)
487 // omp4-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', or '>=') of loop variable 'I'}} omp5-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', '>=', or '!=') of loop variable 'I'}}
489 for (GoodIter I
= begin
; I
- I
; ++I
)
492 // omp4-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', or '>=') of loop variable 'I'}} omp5-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', '>=', or '!=') of loop variable 'I'}}
494 for (GoodIter I
= begin
; begin
< end
; ++I
)
497 // omp4-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', or '>=') of loop variable 'I'}} omp5-error@+2 {{condition of OpenMP for loop must be a relational comparison ('<', '<=', '>', '>=', or '!=') of loop variable 'I'}}
499 for (GoodIter I
= begin
; !I
; ++I
)
502 // expected-note@+3 {{loop step is expected to be negative due to this condition}}
503 // expected-error@+2 {{increment expression must cause 'I' to decrease on each iteration of OpenMP for loop}}
505 for (GoodIter I
= begin
; I
>= end
; I
= I
+ 1)
509 for (GoodIter I
= begin
; I
>= end
; I
= I
- 1)
512 // expected-error@+2 {{increment clause of OpenMP for loop must perform simple addition or subtraction on loop variable 'I'}}
514 for (GoodIter I
= begin
; I
>= end
; I
= -I
)
517 // expected-note@+3 {{loop step is expected to be negative due to this condition}}
518 // expected-error@+2 {{increment expression must cause 'I' to decrease on each iteration of OpenMP for loop}}
520 for (GoodIter I
= begin
; I
>= end
; I
= 2 + I
)
523 // expected-error@+2 {{increment clause of OpenMP for loop must perform simple addition or subtraction on loop variable 'I'}}
525 for (GoodIter I
= begin
; I
>= end
; I
= 2 - I
)
528 // expected-error@+2 {{invalid operands to binary expression ('Iter0' and 'int')}}
530 for (Iter0 I
= begin0
; I
< end0
; ++I
)
533 // Initializer is constructor without params.
534 // expected-error@+3 {{invalid operands to binary expression ('Iter0' and 'int')}}
535 // expected-warning@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
537 for (Iter0 I
; I
< end0
; ++I
)
541 // expected-error@+3 {{invalid operands to binary expression ('Iter1' and 'Iter1')}}
542 // expected-error@+2 {{could not calculate number of iterations calling 'operator-' with upper and lower loop bounds}}
544 for (Iter1 I
= begin1
; I
< end1
; ++I
)
547 // expected-note@+3 {{loop step is expected to be negative due to this condition}}
548 // expected-error@+2 {{increment expression must cause 'I' to decrease on each iteration of OpenMP for loop}}
550 for (Iter1 I
= begin1
; I
>= end1
; ++I
)
553 // expected-error@+5 {{invalid operands to binary expression ('Iter1' and 'float')}}
554 // expected-error@+4 {{could not calculate number of iterations calling 'operator-' with upper and lower loop bounds}}
555 // Initializer is constructor with all default params.
556 // expected-warning@+2 {{initialization clause of OpenMP for loop is not in canonical form ('var = init' or 'T var = init')}}
558 for (Iter1 I
; I
< end1
; ++I
) {
563 template <typename IT
, int ST
>
566 int dotest_lt(IT begin
, IT end
) {
568 // expected-note@+3 {{loop step is expected to be positive due to this condition}}
569 // expected-error@+2 {{increment expression must cause 'I' to increase on each iteration of OpenMP for loop}}
571 for (IT I
= begin
; I
< end
; I
= I
+ ST
) {
575 // expected-note@+3 {{loop step is expected to be positive due to this condition}}
576 // expected-error@+2 {{increment expression must cause 'I' to increase on each iteration of OpenMP for loop}}
578 for (IT I
= begin
; I
<= end
; I
+= ST
) {
583 for (IT I
= begin
; I
< end
; ++I
) {
592 template <typename IT
, int ST
= 0>
593 int dotest_gt(IT begin
, IT end
) {
595 // expected-note@+3 2 {{loop step is expected to be negative due to this condition}}
596 // expected-error@+2 2 {{increment expression must cause 'I' to decrease on each iteration of OpenMP for loop}}
598 for (IT I
= begin
; I
>= end
; I
= I
+ ST
) {
602 // expected-note@+3 2 {{loop step is expected to be negative due to this condition}}
603 // expected-error@+2 2 {{increment expression must cause 'I' to decrease on each iteration of OpenMP for loop}}
605 for (IT I
= begin
; I
>= end
; I
+= ST
) {
610 // expected-note@+3 {{loop step is expected to be negative due to this condition}}
611 // expected-error@+2 {{increment expression must cause 'I' to decrease on each iteration of OpenMP for loop}}
613 for (IT I
= begin
; I
>= end
; ++I
) {
619 for (IT I
= begin
; I
< end
; I
+= TC
<int, ST
>::step()) {
624 void test_with_template() {
626 TC
<GoodIter
, 100> t1
;
627 TC
<GoodIter
, -100> t2
;
628 t1
.dotest_lt(begin
, end
);
629 t2
.dotest_lt(begin
, end
); // expected-note {{in instantiation of member function 'TC<GoodIter, -100>::dotest_lt' requested here}}
630 dotest_gt(begin
, end
); // expected-note {{in instantiation of function template specialization 'dotest_gt<GoodIter, 0>' requested here}}
631 dotest_gt
<unsigned, 10>(0, 100); // expected-note {{in instantiation of function template specialization 'dotest_gt<unsigned int, 10>' requested here}}
634 void test_loop_break() {
636 float a
[N
], b
[N
], c
[N
];
639 for (int i
= 0; i
< 10; i
++) {
641 for (int j
= 0; j
< 10; ++j
) {
643 break; // OK in nested loop
653 break; // expected-error {{'break' statement cannot be used in OpenMP for loop}}
656 break; // expected-error {{'break' statement cannot be used in OpenMP for loop}}
661 for (int i
= 0; i
< 10; i
++) {
662 for (int j
= 0; j
< 10; j
++) {
673 void test_loop_eh() {
675 float a
[N
], b
[N
], c
[N
];
678 for (int i
= 0; i
< 10; i
++) {
680 try { // expected-error {{'try' statement cannot be used in OpenMP simd region}}
681 for (int j
= 0; j
< 10; ++j
) {
683 throw a
[i
]; // expected-error {{'throw' statement cannot be used in OpenMP simd region}}
685 throw a
[i
]; // expected-error {{'throw' statement cannot be used in OpenMP simd region}}
689 throw a
[i
]; // expected-error {{'throw' statement cannot be used in OpenMP simd region}}
690 return; // expected-error {{cannot return from OpenMP region}}
699 for (int j
= 0; j
< 10; j
++) {
701 throw c
[i
]; // expected-error {{'throw' statement cannot be used in OpenMP simd region}}
709 for (int i
= 0; i
< 10; ++i
) {
711 void g() { throw 0; }
716 void test_loop_firstprivate_lastprivate() {
719 #pragma omp for simd lastprivate(s) firstprivate(s)
720 for (int i
= 0; i
< 16; ++i
)
724 void test_ordered() {
726 #pragma omp for simd ordered ordered // expected-error {{directive '#pragma omp for simd' cannot contain more than one 'ordered' clause}}
727 for (int i
= 0; i
< 16; ++i
)
730 #pragma omp for simd ordered
731 for (int i
= 0; i
< 16; ++i
)
734 // expected-error@+1 {{'ordered' clause with a parameter can not be specified in '#pragma omp for simd' directive}}
735 #pragma omp for simd ordered(1)
736 for (int i
= 0; i
< 16; ++i
)
742 #pragma omp for simd nowait nowait // expected-error {{directive '#pragma omp for simd' cannot contain more than one 'nowait' clause}}
743 for (int i
= 0; i
< 16; ++i
)