Lines Matching refs:omp
16 #pragma omp parallel in foo()
17 #pragma omp for in foo()
20 #pragma omp parallel in foo()
21 #pragma omp simd in foo()
24 #pragma omp parallel in foo()
25 #pragma omp for simd in foo()
28 #pragma omp parallel in foo()
29 #pragma omp sections in foo()
33 #pragma omp parallel in foo()
34 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
38 #pragma omp parallel in foo()
39 #pragma omp single in foo()
42 #pragma omp parallel in foo()
43 #pragma omp master in foo()
47 #pragma omp parallel in foo()
48 #pragma omp critical in foo()
52 #pragma omp parallel in foo()
53 #pragma omp parallel for in foo()
56 #pragma omp parallel in foo()
57 #pragma omp parallel for simd in foo()
60 #pragma omp parallel in foo()
61 #pragma omp parallel sections in foo()
65 #pragma omp parallel in foo()
66 #pragma omp parallel master in foo()
70 #pragma omp parallel in foo()
71 #pragma omp task in foo()
75 #pragma omp parallel in foo()
77 #pragma omp taskyield in foo()
80 #pragma omp parallel in foo()
82 #pragma omp barrier in foo()
85 #pragma omp parallel in foo()
87 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel' region; perh… in foo()
90 #pragma omp parallel in foo()
92 #pragma omp taskwait in foo()
95 #pragma omp parallel in foo()
97 #pragma omp flush in foo()
100 #pragma omp parallel in foo()
102 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel' region; p… in foo()
105 #pragma omp parallel in foo()
107 #pragma omp atomic in foo()
110 #pragma omp parallel in foo()
112 #pragma omp target in foo()
115 #pragma omp parallel in foo()
117 #pragma omp target parallel in foo()
120 #pragma omp parallel in foo()
122 #pragma omp target parallel for in foo()
126 #pragma omp parallel in foo()
128 #pragma omp target enter data map(to: a) in foo()
131 #pragma omp parallel in foo()
133 #pragma omp target exit data map(from: a) in foo()
136 #pragma omp parallel in foo()
138 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel' region; per… in foo()
141 #pragma omp parallel in foo()
143 #pragma omp taskloop in foo()
147 #pragma omp parallel in foo()
149 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel' region… in foo()
153 #pragma omp parallel in foo()
155 #pragma omp target update to(a) in foo()
157 #pragma omp parallel in foo()
159 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
163 #pragma omp parallel in foo()
165 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
169 #pragma omp parallel in foo()
171 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel' r… in foo()
175 #pragma omp parallel in foo()
177 #pragma omp target simd // OK in foo()
181 #pragma omp parallel in foo()
183 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel' … in foo()
187 #pragma omp parallel in foo()
189 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
193 #pragma omp parallel in foo()
195 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
199 #pragma omp parallel in foo()
201 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
205 #pragma omp parallel in foo()
207 #pragma omp target teams // OK in foo()
210 #pragma omp parallel in foo()
212 #pragma omp target teams distribute // OK in foo()
216 #pragma omp parallel in foo()
218 #pragma omp target teams distribute parallel for // OK in foo()
222 #pragma omp parallel in foo()
224 #pragma omp target teams distribute parallel for simd // OK in foo()
228 #pragma omp parallel in foo()
230 #pragma omp target teams distribute simd // OK in foo()
236 #pragma omp simd in foo()
238 #pragma omp for // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-e… in foo()
242 #pragma omp simd in foo()
244 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
248 #pragma omp simd in foo()
250 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
254 #pragma omp simd in foo()
256 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
260 #pragma omp simd in foo()
262 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
267 #pragma omp simd in foo()
269 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
274 #pragma omp simd in foo()
276 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
281 #pragma omp simd in foo()
283 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
288 #pragma omp simd in foo()
290 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
295 #pragma omp simd in foo()
297 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
301 #pragma omp simd in foo()
303 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
307 #pragma omp simd in foo()
309 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
314 #pragma omp simd in foo()
316 #pragma omp parallel master // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
321 #pragma omp simd in foo()
323 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
328 #pragma omp simd in foo()
330 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
333 #pragma omp simd in foo()
335 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
338 #pragma omp simd in foo()
340 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
343 #pragma omp simd in foo()
345 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
348 #pragma omp simd in foo()
350 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
353 #pragma omp simd in foo()
355 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
358 #pragma omp simd in foo()
360 #pragma omp ordered simd // OK in foo()
363 #pragma omp simd in foo()
365 #pragma omp ordered threads // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
368 #pragma omp simd in foo()
370 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
373 #pragma omp simd in foo()
375 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
378 #pragma omp simd in foo()
380 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
383 #pragma omp simd in foo()
385 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
389 #pragma omp simd in foo()
391 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
394 #pragma omp simd in foo()
396 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
399 #pragma omp simd in foo()
401 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
404 #pragma omp simd in foo()
406 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
410 #pragma omp simd in foo()
412 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
416 #pragma omp simd in foo()
418 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
420 #pragma omp simd in foo()
422 #pragma omp distribute parallel for// expected-error {{OpenMP constructs may not be nested inside a… in foo()
426 #pragma omp simd in foo()
428 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
432 #pragma omp simd in foo()
434 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
438 #pragma omp simd in foo()
440 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
444 #pragma omp simd in foo()
446 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
450 #pragma omp simd in foo()
452 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
456 #pragma omp simd in foo()
458 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
462 #pragma omp simd in foo()
464 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
468 #pragma omp simd in foo()
470 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
473 #pragma omp simd in foo()
475 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
479 #pragma omp simd in foo()
481 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
485 #pragma omp simd in foo()
487 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
491 #pragma omp simd in foo()
493 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
499 #pragma omp for in foo()
501 #pragma omp for // expected-error {{region cannot be closely nested inside 'for' region; perhaps yo… in foo()
505 #pragma omp for in foo()
507 #pragma omp simd in foo()
511 #pragma omp for in foo()
513 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'for' region; perha… in foo()
517 #pragma omp for in foo()
519 #pragma omp parallel in foo()
523 #pragma omp for in foo()
525 #pragma omp sections // expected-error {{region cannot be closely nested inside 'for' region; perha… in foo()
530 #pragma omp for in foo()
532 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
537 #pragma omp for in foo()
539 #pragma omp single // expected-error {{region cannot be closely nested inside 'for' region; perhaps… in foo()
545 #pragma omp for in foo()
547 #pragma omp master // expected-error {{region cannot be closely nested inside 'for' region}} in foo()
552 #pragma omp for in foo()
554 #pragma omp critical in foo()
559 #pragma omp for in foo()
561 #pragma omp parallel in foo()
563 #pragma omp single // OK in foo()
567 #pragma omp for // OK in foo()
570 #pragma omp sections // OK in foo()
576 #pragma omp for in foo()
578 #pragma omp parallel for in foo()
582 #pragma omp for in foo()
584 #pragma omp parallel for simd in foo()
588 #pragma omp for in foo()
590 #pragma omp parallel master in foo()
595 #pragma omp for in foo()
597 #pragma omp parallel sections in foo()
602 #pragma omp for in foo()
604 #pragma omp task in foo()
609 #pragma omp for in foo()
611 #pragma omp taskyield in foo()
614 #pragma omp for in foo()
616 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'for' region}} in foo()
619 #pragma omp for in foo()
621 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'for' region; perhaps you … in foo()
624 #pragma omp for in foo()
626 #pragma omp taskwait in foo()
629 #pragma omp for in foo()
631 #pragma omp flush in foo()
634 #pragma omp for in foo()
636 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'for' region; perhap… in foo()
639 #pragma omp for ordered in foo()
641 #pragma omp ordered // OK in foo()
644 #pragma omp for in foo()
646 #pragma omp atomic in foo()
649 #pragma omp for in foo()
651 #pragma omp target in foo()
654 #pragma omp for in foo()
656 #pragma omp target parallel in foo()
659 #pragma omp for in foo()
661 #pragma omp target parallel for in foo()
665 #pragma omp for in foo()
667 #pragma omp target enter data map(to: a) in foo()
670 #pragma omp for in foo()
672 #pragma omp target exit data map(from: a) in foo()
675 #pragma omp for in foo()
677 #pragma omp teams // expected-error {{region cannot be closely nested inside 'for' region; perhaps … in foo()
680 #pragma omp for in foo()
682 #pragma omp taskloop in foo()
686 #pragma omp for in foo()
688 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'for' region; per… in foo()
692 #pragma omp for in foo()
694 #pragma omp target update to(a) in foo()
696 #pragma omp for in foo()
698 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'for… in foo()
702 #pragma omp for in foo()
704 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
708 #pragma omp for in foo()
710 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'for' region… in foo()
714 #pragma omp for in foo()
716 #pragma omp target simd // OK in foo()
720 #pragma omp for in foo()
722 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'for' regio… in foo()
726 #pragma omp for in foo()
728 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'for' … in foo()
732 #pragma omp for in foo()
734 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
738 #pragma omp for in foo()
740 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
744 #pragma omp for in foo()
746 #pragma omp target teams // OK in foo()
749 #pragma omp for in foo()
751 #pragma omp target teams distribute // OK in foo()
755 #pragma omp for in foo()
757 #pragma omp target teams distribute parallel for // OK in foo()
761 #pragma omp for in foo()
763 #pragma omp target teams distribute parallel for simd // OK in foo()
767 #pragma omp for in foo()
769 #pragma omp target teams distribute simd // OK in foo()
775 #pragma omp for simd in foo()
777 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
781 #pragma omp for simd in foo()
783 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
787 #pragma omp for simd in foo()
789 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
793 #pragma omp for simd in foo()
795 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
799 #pragma omp for simd in foo()
801 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
806 #pragma omp for simd in foo()
808 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
813 #pragma omp for simd in foo()
815 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
820 #pragma omp for simd in foo()
822 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
827 #pragma omp for simd in foo()
829 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
834 #pragma omp for simd in foo()
836 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
840 #pragma omp for simd in foo()
842 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
846 #pragma omp for simd in foo()
848 #pragma omp parallel master // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
853 #pragma omp for simd in foo()
855 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
860 #pragma omp for simd in foo()
862 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
867 #pragma omp for simd in foo()
869 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
872 #pragma omp for simd in foo()
874 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
877 #pragma omp for simd in foo()
879 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
882 #pragma omp for simd in foo()
884 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
887 #pragma omp for simd in foo()
889 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
892 #pragma omp for simd in foo()
894 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
897 #pragma omp for simd in foo()
899 #pragma omp ordered simd // OK in foo()
902 #pragma omp for simd in foo()
904 #pragma omp ordered threads // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
907 #pragma omp for simd in foo()
909 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
912 #pragma omp for simd in foo()
914 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
917 #pragma omp for simd in foo()
919 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
922 #pragma omp for simd in foo()
924 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
928 #pragma omp for simd in foo()
930 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
933 #pragma omp for simd in foo()
935 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
938 #pragma omp for simd in foo()
940 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
943 #pragma omp for simd in foo()
945 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
949 #pragma omp for simd in foo()
951 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
955 #pragma omp for simd in foo()
957 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
960 #pragma omp for simd in foo()
962 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
966 #pragma omp for simd in foo()
968 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
972 #pragma omp for simd in foo()
974 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
978 #pragma omp for simd in foo()
980 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
984 #pragma omp for simd in foo()
986 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
990 #pragma omp for simd in foo()
992 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
996 #pragma omp for simd in foo()
998 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
1002 #pragma omp for simd in foo()
1004 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
1008 #pragma omp for simd in foo()
1010 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
1013 #pragma omp for simd in foo()
1015 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
1019 #pragma omp for simd in foo()
1021 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
1025 #pragma omp for simd in foo()
1027 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
1031 #pragma omp for simd in foo()
1033 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
1039 #pragma omp sections in foo()
1041 #pragma omp for // expected-error {{region cannot be closely nested inside 'sections' region; perha… in foo()
1045 #pragma omp sections in foo()
1047 #pragma omp simd in foo()
1051 #pragma omp sections in foo()
1053 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'sections' region; … in foo()
1057 #pragma omp sections in foo()
1059 #pragma omp parallel in foo()
1063 #pragma omp sections in foo()
1065 #pragma omp sections // expected-error {{region cannot be closely nested inside 'sections' region; … in foo()
1070 #pragma omp sections in foo()
1072 #pragma omp section in foo()
1077 #pragma omp sections in foo()
1079 #pragma omp parallel in foo()
1081 #pragma omp single // OK in foo()
1085 #pragma omp for // OK in foo()
1088 #pragma omp sections // OK in foo()
1094 #pragma omp sections in foo()
1096 #pragma omp parallel master in foo()
1101 #pragma omp sections in foo()
1103 #pragma omp parallel in foo()
1105 #pragma omp master // OK in foo()
1109 #pragma omp for // OK in foo()
1112 #pragma omp master // OK in foo()
1117 #pragma omp master // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
1120 #pragma omp sections in foo()
1122 #pragma omp parallel in foo()
1124 #pragma omp critical(A) // OK in foo()
1128 #pragma omp for // OK in foo()
1131 #pragma omp critical // OK in foo()
1136 #pragma omp critical(A) // expected-error {{statement in 'omp sections' directive must be enclosed … in foo()
1139 #pragma omp sections in foo()
1141 #pragma omp parallel for in foo()
1145 #pragma omp sections in foo()
1147 #pragma omp parallel for simd in foo()
1151 #pragma omp sections in foo()
1153 #pragma omp parallel sections in foo()
1158 #pragma omp sections in foo()
1160 #pragma omp task in foo()
1165 #pragma omp sections in foo()
1167 #pragma omp taskyield in foo()
1169 #pragma omp sections in foo()
1171 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
1173 #pragma omp sections in foo()
1175 #pragma omp scan // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
1177 #pragma omp sections in foo()
1179 #pragma omp taskwait in foo()
1181 #pragma omp sections in foo()
1183 #pragma omp flush in foo()
1185 #pragma omp sections in foo()
1187 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'sections' region; p… in foo()
1190 #pragma omp sections in foo()
1192 #pragma omp atomic in foo()
1195 #pragma omp sections in foo()
1197 #pragma omp target in foo()
1200 #pragma omp sections in foo()
1202 #pragma omp target parallel in foo()
1205 #pragma omp sections in foo()
1207 #pragma omp target parallel for in foo()
1211 #pragma omp sections in foo()
1213 #pragma omp target enter data map(to: a) in foo()
1215 #pragma omp sections in foo()
1217 #pragma omp target exit data map(from: a) in foo()
1219 #pragma omp sections in foo()
1221 #pragma omp teams // expected-error {{region cannot be closely nested inside 'sections' region; per… in foo()
1224 #pragma omp sections in foo()
1226 #pragma omp taskloop in foo()
1230 #pragma omp sections in foo()
1232 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'sections' region… in foo()
1236 #pragma omp sections in foo()
1238 #pragma omp target update to(a) in foo()
1240 #pragma omp sections in foo()
1242 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sec… in foo()
1246 #pragma omp sections in foo()
1248 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
1252 #pragma omp sections in foo()
1254 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'sections' r… in foo()
1258 #pragma omp sections in foo()
1260 #pragma omp target simd // OK in foo()
1264 #pragma omp sections in foo()
1266 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'sections' … in foo()
1270 #pragma omp sections in foo()
1272 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'secti… in foo()
1276 #pragma omp sections in foo()
1278 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
1282 #pragma omp sections in foo()
1284 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
1288 #pragma omp sections in foo()
1290 #pragma omp target teams // OK in foo()
1293 #pragma omp sections in foo()
1295 #pragma omp target teams distribute // OK in foo()
1299 #pragma omp sections in foo()
1301 #pragma omp target teams distribute parallel for // OK in foo()
1305 #pragma omp sections in foo()
1307 #pragma omp target teams distribute parallel for simd // OK in foo()
1311 #pragma omp sections in foo()
1313 #pragma omp target teams distribute simd // OK in foo()
1319 #pragma omp section // expected-error {{orphaned 'omp section' directives are prohibited, it must b… in foo()
1323 #pragma omp sections in foo()
1325 #pragma omp section in foo()
1327 #pragma omp for // expected-error {{region cannot be closely nested inside 'section' region; perhap… in foo()
1332 #pragma omp sections in foo()
1334 #pragma omp section in foo()
1336 #pragma omp simd in foo()
1341 #pragma omp sections in foo()
1343 #pragma omp section in foo()
1345 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'section' region; p… in foo()
1350 #pragma omp sections in foo()
1352 #pragma omp section in foo()
1354 #pragma omp parallel in foo()
1359 #pragma omp sections in foo()
1361 #pragma omp section in foo()
1363 #pragma omp sections // expected-error {{region cannot be closely nested inside 'section' region; p… in foo()
1369 #pragma omp sections in foo()
1371 #pragma omp section in foo()
1373 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
1379 #pragma omp sections in foo()
1381 #pragma omp section in foo()
1383 #pragma omp parallel master in foo()
1385 #pragma omp critical in foo()
1389 #pragma omp sections in foo()
1391 #pragma omp section in foo()
1393 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; per… in foo()
1395 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
1397 #pragma omp critical in foo()
1401 #pragma omp sections in foo()
1403 #pragma omp section in foo()
1405 #pragma omp parallel in foo()
1407 #pragma omp single // OK in foo()
1411 #pragma omp for // OK in foo()
1414 #pragma omp for simd // OK in foo()
1417 #pragma omp sections // OK in foo()
1424 #pragma omp sections in foo()
1426 #pragma omp section in foo()
1428 #pragma omp parallel for in foo()
1433 #pragma omp sections in foo()
1435 #pragma omp section in foo()
1437 #pragma omp parallel for simd in foo()
1442 #pragma omp sections in foo()
1444 #pragma omp section in foo()
1446 #pragma omp parallel sections in foo()
1452 #pragma omp sections in foo()
1454 #pragma omp section in foo()
1456 #pragma omp task in foo()
1462 #pragma omp sections in foo()
1464 #pragma omp section in foo()
1466 #pragma omp taskyield in foo()
1470 #pragma omp sections in foo()
1472 #pragma omp section in foo()
1474 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
1478 #pragma omp sections in foo()
1480 #pragma omp section in foo()
1482 #pragma omp scan // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
1486 #pragma omp sections in foo()
1488 #pragma omp section in foo()
1490 #pragma omp taskwait in foo()
1494 #pragma omp sections in foo()
1496 #pragma omp section in foo()
1498 #pragma omp flush in foo()
1502 #pragma omp sections in foo()
1504 #pragma omp section in foo()
1506 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'section' region; pe… in foo()
1510 #pragma omp sections in foo()
1512 #pragma omp section in foo()
1513 #pragma omp atomic in foo()
1516 #pragma omp sections in foo()
1518 #pragma omp section in foo()
1519 #pragma omp target in foo()
1522 #pragma omp sections in foo()
1524 #pragma omp section in foo()
1525 #pragma omp target parallel in foo()
1528 #pragma omp sections in foo()
1530 #pragma omp section in foo()
1532 #pragma omp target parallel for in foo()
1537 #pragma omp sections in foo()
1539 #pragma omp section in foo()
1541 #pragma omp target enter data map(to: a) in foo()
1545 #pragma omp sections in foo()
1547 #pragma omp section in foo()
1549 #pragma omp target exit data map(from: a) in foo()
1553 #pragma omp sections in foo()
1555 #pragma omp section in foo()
1556 #pragma omp teams // expected-error {{region cannot be closely nested inside 'section' region; perh… in foo()
1559 #pragma omp sections in foo()
1561 #pragma omp section in foo()
1562 #pragma omp taskloop in foo()
1566 #pragma omp sections in foo()
1568 #pragma omp section in foo()
1569 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'section' region;… in foo()
1573 #pragma omp sections in foo()
1575 #pragma omp section in foo()
1578 #pragma omp target update to(a) in foo()
1581 #pragma omp sections in foo()
1583 #pragma omp section in foo()
1584 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sec… in foo()
1588 #pragma omp sections in foo()
1590 #pragma omp section in foo()
1591 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
1595 #pragma omp sections in foo()
1597 #pragma omp section in foo()
1598 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'section' re… in foo()
1602 #pragma omp sections in foo()
1604 #pragma omp section in foo()
1605 #pragma omp target simd // OK in foo()
1609 #pragma omp sections in foo()
1611 #pragma omp section in foo()
1612 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'section' r… in foo()
1616 #pragma omp sections in foo()
1618 #pragma omp section in foo()
1619 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'secti… in foo()
1623 #pragma omp sections in foo()
1625 #pragma omp section in foo()
1626 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
1630 #pragma omp sections in foo()
1632 #pragma omp section in foo()
1633 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
1637 #pragma omp sections in foo()
1639 #pragma omp section in foo()
1640 #pragma omp target teams // OK in foo()
1643 #pragma omp sections in foo()
1645 #pragma omp section in foo()
1646 #pragma omp target teams distribute // OK in foo()
1650 #pragma omp sections in foo()
1652 #pragma omp section in foo()
1653 #pragma omp target teams distribute parallel for // OK in foo()
1657 #pragma omp sections in foo()
1659 #pragma omp section in foo()
1660 #pragma omp target teams distribute parallel for simd // OK in foo()
1664 #pragma omp sections in foo()
1666 #pragma omp section in foo()
1667 #pragma omp target teams distribute simd // OK in foo()
1673 #pragma omp single in foo()
1675 #pragma omp for // expected-error {{region cannot be closely nested inside 'single' region; perhaps… in foo()
1679 #pragma omp single in foo()
1681 #pragma omp simd in foo()
1685 #pragma omp single in foo()
1687 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'single' region; pe… in foo()
1691 #pragma omp single in foo()
1693 #pragma omp parallel in foo()
1697 #pragma omp single in foo()
1699 #pragma omp single // expected-error {{region cannot be closely nested inside 'single' region; perh… in foo()
1704 #pragma omp single in foo()
1706 #pragma omp master // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
1711 #pragma omp single in foo()
1713 #pragma omp parallel master in foo()
1718 #pragma omp single in foo()
1720 #pragma omp critical in foo()
1725 #pragma omp single in foo()
1727 #pragma omp sections // expected-error {{region cannot be closely nested inside 'single' region; pe… in foo()
1732 #pragma omp single in foo()
1734 #pragma omp parallel in foo()
1736 #pragma omp single // OK in foo()
1740 #pragma omp for // OK in foo()
1743 #pragma omp for simd // OK in foo()
1746 #pragma omp sections // OK in foo()
1752 #pragma omp single in foo()
1754 #pragma omp parallel for in foo()
1758 #pragma omp single in foo()
1760 #pragma omp parallel for simd in foo()
1764 #pragma omp single in foo()
1766 #pragma omp parallel sections in foo()
1771 #pragma omp single in foo()
1773 #pragma omp task in foo()
1778 #pragma omp single in foo()
1780 #pragma omp taskyield in foo()
1783 #pragma omp single in foo()
1785 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
1788 #pragma omp single in foo()
1790 #pragma omp scan // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
1793 #pragma omp single in foo()
1795 #pragma omp taskwait in foo()
1798 #pragma omp single in foo()
1800 #pragma omp flush in foo()
1803 #pragma omp single in foo()
1805 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'single' region; per… in foo()
1808 #pragma omp single in foo()
1810 #pragma omp atomic in foo()
1813 #pragma omp single in foo()
1815 #pragma omp target in foo()
1818 #pragma omp single in foo()
1820 #pragma omp target parallel in foo()
1823 #pragma omp single in foo()
1825 #pragma omp target parallel for in foo()
1829 #pragma omp single in foo()
1831 #pragma omp target enter data map(to: a) in foo()
1834 #pragma omp single in foo()
1836 #pragma omp target exit data map(from: a) in foo()
1839 #pragma omp single in foo()
1841 #pragma omp teams // expected-error {{region cannot be closely nested inside 'single' region; perha… in foo()
1844 #pragma omp single in foo()
1846 #pragma omp taskloop in foo()
1850 #pragma omp single in foo()
1852 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'single' region; … in foo()
1856 #pragma omp single in foo()
1858 #pragma omp target update to(a) in foo()
1861 #pragma omp single in foo()
1863 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sin… in foo()
1867 #pragma omp single in foo()
1869 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
1873 #pragma omp single in foo()
1875 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'single' reg… in foo()
1879 #pragma omp single in foo()
1881 #pragma omp target simd // OK in foo()
1885 #pragma omp single in foo()
1887 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'single' re… in foo()
1891 #pragma omp single in foo()
1893 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'singl… in foo()
1897 #pragma omp single in foo()
1899 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
1903 #pragma omp single in foo()
1905 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
1909 #pragma omp single in foo()
1911 #pragma omp target teams // OK in foo()
1914 #pragma omp single in foo()
1916 #pragma omp target teams distribute // OK in foo()
1920 #pragma omp single in foo()
1922 #pragma omp target teams distribute parallel for // OK in foo()
1926 #pragma omp single in foo()
1928 #pragma omp target teams distribute parallel for simd // OK in foo()
1932 #pragma omp single in foo()
1934 #pragma omp target teams distribute simd // OK in foo()
1940 #pragma omp master in foo()
1942 #pragma omp for // expected-error {{region cannot be closely nested inside 'master' region; perhaps… in foo()
1946 #pragma omp master in foo()
1948 #pragma omp simd in foo()
1952 #pragma omp master in foo()
1954 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'master' region; pe… in foo()
1958 #pragma omp master in foo()
1960 #pragma omp parallel in foo()
1964 #pragma omp master in foo()
1966 #pragma omp single // expected-error {{region cannot be closely nested inside 'master' region; perh… in foo()
1971 #pragma omp master in foo()
1973 #pragma omp master // OK, though second 'master' is redundant in foo()
1978 #pragma omp master in foo()
1980 #pragma omp critical in foo()
1985 #pragma omp master in foo()
1987 #pragma omp sections // expected-error {{region cannot be closely nested inside 'master' region; pe… in foo()
1992 #pragma omp master in foo()
1994 #pragma omp parallel in foo()
1996 #pragma omp master // OK in foo()
2000 #pragma omp for // OK in foo()
2003 #pragma omp for simd // OK in foo()
2006 #pragma omp sections // OK in foo()
2012 #pragma omp master in foo()
2014 #pragma omp parallel master // OK in foo()
2018 #pragma omp parallel in foo()
2020 #pragma omp for // OK in foo()
2023 #pragma omp for simd // OK in foo()
2026 #pragma omp sections // OK in foo()
2032 #pragma omp master in foo()
2034 #pragma omp parallel for in foo()
2038 #pragma omp master in foo()
2040 #pragma omp parallel for simd in foo()
2044 #pragma omp master in foo()
2046 #pragma omp parallel sections in foo()
2051 #pragma omp master in foo()
2053 #pragma omp task in foo()
2058 #pragma omp master in foo()
2060 #pragma omp taskyield in foo()
2063 #pragma omp master in foo()
2065 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'master' region}} in foo()
2068 #pragma omp master in foo()
2070 #pragma omp scan // expected-error {{region cannot be closely nested inside 'master' region}} in foo()
2073 #pragma omp master in foo()
2075 #pragma omp taskwait in foo()
2078 #pragma omp master in foo()
2080 #pragma omp flush in foo()
2083 #pragma omp master in foo()
2085 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'master' region; per… in foo()
2088 #pragma omp master in foo()
2090 #pragma omp atomic in foo()
2093 #pragma omp master in foo()
2095 #pragma omp target in foo()
2098 #pragma omp master in foo()
2100 #pragma omp target parallel in foo()
2103 #pragma omp master in foo()
2105 #pragma omp target parallel for in foo()
2109 #pragma omp master in foo()
2111 #pragma omp target enter data map(to: a) in foo()
2114 #pragma omp master in foo()
2116 #pragma omp target exit data map(from: a) in foo()
2119 #pragma omp master in foo()
2121 #pragma omp teams // expected-error {{region cannot be closely nested inside 'master' region; perha… in foo()
2124 #pragma omp master in foo()
2126 #pragma omp taskloop in foo()
2130 #pragma omp master in foo()
2132 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'master' region; … in foo()
2136 #pragma omp master in foo()
2138 #pragma omp target update to(a) in foo()
2141 #pragma omp master in foo()
2143 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'mas… in foo()
2147 #pragma omp master in foo()
2149 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
2153 #pragma omp master in foo()
2155 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'master' reg… in foo()
2159 #pragma omp master in foo()
2161 #pragma omp target simd // OK in foo()
2165 #pragma omp master in foo()
2167 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'master' re… in foo()
2171 #pragma omp master in foo()
2173 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'maste… in foo()
2177 #pragma omp master in foo()
2179 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
2183 #pragma omp master in foo()
2185 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
2189 #pragma omp master in foo()
2191 #pragma omp target teams // OK in foo()
2194 #pragma omp master in foo()
2196 #pragma omp target teams distribute // OK in foo()
2200 #pragma omp master in foo()
2202 #pragma omp target teams distribute parallel for // OK in foo()
2206 #pragma omp master in foo()
2208 #pragma omp target teams distribute parallel for simd // OK in foo()
2212 #pragma omp master in foo()
2214 #pragma omp target teams distribute simd // OK in foo()
2220 #pragma omp critical in foo()
2222 #pragma omp for // expected-error {{region cannot be closely nested inside 'critical' region; perha… in foo()
2226 #pragma omp critical in foo()
2228 #pragma omp simd in foo()
2232 #pragma omp critical in foo()
2234 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'critical' region; … in foo()
2238 #pragma omp critical in foo()
2240 #pragma omp parallel in foo()
2244 #pragma omp critical in foo()
2246 #pragma omp single // expected-error {{region cannot be closely nested inside 'critical' region; pe… in foo()
2251 #pragma omp critical in foo()
2253 #pragma omp master // OK, though second 'master' is redundant in foo()
2258 #pragma omp critical in foo()
2260 #pragma omp critical in foo()
2265 #pragma omp critical in foo()
2267 #pragma omp sections // expected-error {{region cannot be closely nested inside 'critical' region; … in foo()
2272 #pragma omp critical in foo()
2274 #pragma omp parallel in foo()
2276 #pragma omp master // OK in foo()
2280 #pragma omp for // OK in foo()
2283 #pragma omp for simd // OK in foo()
2286 #pragma omp sections // OK in foo()
2292 #pragma omp critical in foo()
2294 #pragma omp parallel master in foo()
2299 #pragma omp critical in foo()
2301 #pragma omp parallel for in foo()
2305 #pragma omp critical in foo()
2307 #pragma omp parallel for simd in foo()
2311 #pragma omp critical in foo()
2313 #pragma omp parallel sections in foo()
2318 #pragma omp critical in foo()
2320 #pragma omp task in foo()
2325 #pragma omp critical in foo()
2327 #pragma omp taskyield in foo()
2330 #pragma omp critical in foo()
2332 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'critical' region}} in foo()
2335 #pragma omp critical in foo()
2337 #pragma omp scan // expected-error {{region cannot be closely nested inside 'critical' region}} in foo()
2340 #pragma omp critical in foo()
2342 #pragma omp taskwait in foo()
2345 #pragma omp critical(Tuzik) in foo()
2347 #pragma omp critical(grelka) in foo()
2350 #pragma omp critical(Belka) // expected-note {{previous 'critical' region starts here}} in foo()
2352 #pragma omp critical(Belka) // expected-error {{cannot nest 'critical' regions having the same name… in foo()
2354 #pragma omp critical(Tuzik) in foo()
2356 #pragma omp parallel in foo()
2357 #pragma omp critical(grelka) in foo()
2364 #pragma omp critical in foo()
2366 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'critical' region; p… in foo()
2369 #pragma omp critical in foo()
2371 #pragma omp atomic in foo()
2374 #pragma omp critical in foo()
2376 #pragma omp target in foo()
2379 #pragma omp critical in foo()
2381 #pragma omp target parallel in foo()
2384 #pragma omp critical in foo()
2386 #pragma omp target parallel for in foo()
2390 #pragma omp critical in foo()
2392 #pragma omp target enter data map(to: a) in foo()
2395 #pragma omp critical in foo()
2397 #pragma omp target exit data map(from: a) in foo()
2400 #pragma omp critical in foo()
2402 #pragma omp teams // expected-error {{region cannot be closely nested inside 'critical' region; per… in foo()
2405 #pragma omp critical in foo()
2407 #pragma omp taskloop in foo()
2411 #pragma omp critical in foo()
2413 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'critical' region… in foo()
2417 #pragma omp critical in foo()
2419 #pragma omp target update to(a) in foo()
2422 #pragma omp critical in foo()
2424 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'cri… in foo()
2428 #pragma omp critical in foo()
2430 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
2434 #pragma omp critical in foo()
2436 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'critical' r… in foo()
2440 #pragma omp critical in foo()
2442 #pragma omp target simd // OK in foo()
2446 #pragma omp critical in foo()
2448 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'critical' … in foo()
2452 #pragma omp critical in foo()
2454 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'criti… in foo()
2458 #pragma omp critical in foo()
2460 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
2464 #pragma omp critical in foo()
2466 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
2470 #pragma omp critical in foo()
2472 #pragma omp target teams // OK in foo()
2475 #pragma omp critical in foo()
2477 #pragma omp target teams distribute // OK in foo()
2481 #pragma omp critical in foo()
2483 #pragma omp target teams distribute parallel for // OK in foo()
2487 #pragma omp critical in foo()
2489 #pragma omp target teams distribute parallel for simd // OK in foo()
2493 #pragma omp critical in foo()
2495 #pragma omp target teams distribute simd // OK in foo()
2501 #pragma omp parallel for in foo()
2503 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel for' region; p… in foo()
2507 #pragma omp parallel for in foo()
2509 #pragma omp simd in foo()
2513 #pragma omp parallel for in foo()
2515 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel for' regi… in foo()
2519 #pragma omp parallel for in foo()
2521 #pragma omp parallel in foo()
2525 #pragma omp parallel for in foo()
2527 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel for' regi… in foo()
2532 #pragma omp parallel for in foo()
2534 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
2539 #pragma omp parallel for in foo()
2541 #pragma omp single // expected-error {{region cannot be closely nested inside 'parallel for' region… in foo()
2547 #pragma omp parallel for in foo()
2549 #pragma omp master // expected-error {{region cannot be closely nested inside 'parallel for' region… in foo()
2555 #pragma omp parallel for in foo()
2557 #pragma omp critical in foo()
2563 #pragma omp parallel for in foo()
2565 #pragma omp parallel in foo()
2567 #pragma omp single // OK in foo()
2571 #pragma omp for // OK in foo()
2574 #pragma omp for simd // OK in foo()
2577 #pragma omp sections // OK in foo()
2583 #pragma omp parallel for in foo()
2585 #pragma omp parallel for in foo()
2589 #pragma omp parallel for in foo()
2591 #pragma omp parallel for simd in foo()
2595 #pragma omp parallel for in foo()
2597 #pragma omp parallel sections in foo()
2602 #pragma omp parallel for in foo()
2604 #pragma omp task in foo()
2609 #pragma omp parallel for in foo()
2611 #pragma omp taskyield in foo()
2614 #pragma omp parallel for in foo()
2616 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel for' regio… in foo()
2619 #pragma omp parallel for in foo()
2621 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'parallel for' region}} om… in foo()
2624 #pragma omp parallel for in foo()
2626 #pragma omp taskwait in foo()
2629 #pragma omp parallel for in foo()
2631 #pragma omp flush in foo()
2634 #pragma omp parallel for in foo()
2636 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel for' regio… in foo()
2639 #pragma omp parallel for ordered in foo()
2641 #pragma omp ordered // OK in foo()
2644 #pragma omp parallel for in foo()
2646 #pragma omp atomic in foo()
2649 #pragma omp parallel for in foo()
2651 #pragma omp target in foo()
2654 #pragma omp parallel for in foo()
2656 #pragma omp target parallel in foo()
2659 #pragma omp parallel for in foo()
2661 #pragma omp target parallel for in foo()
2665 #pragma omp parallel for in foo()
2667 #pragma omp target enter data map(to: a) in foo()
2670 #pragma omp parallel for in foo()
2672 #pragma omp target exit data map(from: a) in foo()
2675 #pragma omp parallel for in foo()
2677 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel for' region;… in foo()
2680 #pragma omp parallel for in foo()
2682 #pragma omp taskloop in foo()
2686 #pragma omp parallel for in foo()
2688 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel for' re… in foo()
2692 #pragma omp parallel for in foo()
2694 #pragma omp target update to(a) in foo()
2696 #pragma omp parallel for in foo()
2698 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
2702 #pragma omp parallel for in foo()
2704 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
2708 #pragma omp parallel for in foo()
2710 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel fo… in foo()
2714 #pragma omp parallel for in foo()
2716 #pragma omp target simd // OK in foo()
2720 #pragma omp parallel for in foo()
2722 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel f… in foo()
2726 #pragma omp parallel for in foo()
2728 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
2732 #pragma omp parallel for in foo()
2734 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
2738 #pragma omp parallel for in foo()
2740 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
2744 #pragma omp parallel for in foo()
2746 #pragma omp target teams // OK in foo()
2749 #pragma omp parallel for in foo()
2751 #pragma omp target teams distribute // OK in foo()
2755 #pragma omp parallel for in foo()
2757 #pragma omp target teams distribute parallel for // OK in foo()
2761 #pragma omp parallel for in foo()
2763 #pragma omp target teams distribute parallel for simd // OK in foo()
2767 #pragma omp parallel for in foo()
2769 #pragma omp target teams distribute simd // OK in foo()
2775 #pragma omp parallel for simd in foo()
2777 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2781 #pragma omp parallel for simd in foo()
2783 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
2787 #pragma omp parallel for simd in foo()
2789 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2793 #pragma omp parallel for simd in foo()
2795 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2799 #pragma omp parallel for simd in foo()
2801 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2806 #pragma omp parallel for simd in foo()
2808 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2813 #pragma omp parallel for simd in foo()
2815 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2821 #pragma omp parallel for simd in foo()
2823 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2829 #pragma omp parallel for simd in foo()
2831 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2837 #pragma omp parallel for simd in foo()
2839 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2841 #pragma omp single in foo()
2845 #pragma omp for in foo()
2848 #pragma omp for simd in foo()
2851 #pragma omp sections in foo()
2857 #pragma omp parallel for simd in foo()
2859 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
2863 #pragma omp parallel for simd in foo()
2865 #pragma omp parallel for simd// expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
2869 #pragma omp parallel for simd in foo()
2871 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
2876 #pragma omp parallel for simd in foo()
2878 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2883 #pragma omp parallel for simd in foo()
2885 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2888 #pragma omp parallel for simd in foo()
2890 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2893 #pragma omp parallel for simd in foo()
2895 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
2898 #pragma omp parallel for simd in foo()
2900 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2903 #pragma omp parallel for simd in foo()
2905 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2908 #pragma omp parallel for simd in foo()
2910 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2913 #pragma omp parallel for simd in foo()
2915 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2918 #pragma omp parallel for simd in foo()
2920 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2923 #pragma omp parallel for simd in foo()
2925 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2928 #pragma omp parallel for simd in foo()
2930 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
2933 #pragma omp parallel for simd in foo()
2935 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
2939 #pragma omp parallel for simd in foo()
2941 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
2944 #pragma omp parallel for simd in foo()
2946 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
2949 #pragma omp parallel for simd in foo()
2951 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2954 #pragma omp parallel for simd in foo()
2956 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2960 #pragma omp parallel for simd in foo()
2962 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
2966 #pragma omp parallel for simd in foo()
2968 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
2971 #pragma omp parallel for simd in foo()
2973 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
2977 #pragma omp parallel for simd in foo()
2979 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
2983 #pragma omp parallel for simd in foo()
2985 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
2989 #pragma omp parallel for simd in foo()
2991 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
2995 #pragma omp parallel for simd in foo()
2997 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
3001 #pragma omp parallel for simd in foo()
3003 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
3007 #pragma omp parallel for simd in foo()
3009 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
3013 #pragma omp parallel for simd in foo()
3015 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
3019 #pragma omp parallel for simd in foo()
3021 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
3024 #pragma omp parallel for simd in foo()
3026 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
3030 #pragma omp parallel for simd in foo()
3032 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
3036 #pragma omp parallel for simd in foo()
3038 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
3042 #pragma omp parallel for simd in foo()
3044 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
3050 #pragma omp parallel master in foo()
3052 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel master' region… in foo()
3056 #pragma omp parallel master in foo()
3058 #pragma omp simd in foo()
3062 #pragma omp parallel master in foo()
3064 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel master' r… in foo()
3068 #pragma omp parallel master in foo()
3070 #pragma omp parallel in foo()
3074 #pragma omp parallel master in foo()
3076 #pragma omp single // expected-error {{region cannot be closely nested inside 'parallel master' reg… in foo()
3081 #pragma omp parallel master in foo()
3083 #pragma omp master // OK, though second 'master' is redundant in foo()
3088 #pragma omp parallel master in foo()
3090 #pragma omp critical in foo()
3095 #pragma omp parallel master in foo()
3097 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel master' r… in foo()
3102 #pragma omp parallel master in foo()
3104 #pragma omp parallel in foo()
3106 #pragma omp parallel master // OK in foo()
3110 #pragma omp for // OK in foo()
3113 #pragma omp for simd // OK in foo()
3116 #pragma omp sections // OK in foo()
3122 #pragma omp parallel master in foo()
3124 #pragma omp parallel master // OK in foo()
3128 #pragma omp parallel in foo()
3130 #pragma omp for // OK in foo()
3133 #pragma omp for simd // OK in foo()
3136 #pragma omp sections // OK in foo()
3142 #pragma omp parallel master in foo()
3144 #pragma omp parallel for in foo()
3148 #pragma omp parallel master in foo()
3150 #pragma omp parallel for simd in foo()
3154 #pragma omp parallel master in foo()
3156 #pragma omp parallel sections in foo()
3161 #pragma omp parallel master in foo()
3163 #pragma omp task in foo()
3168 #pragma omp parallel master in foo()
3170 #pragma omp taskyield in foo()
3173 #pragma omp parallel master in foo()
3175 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel master' re… in foo()
3178 #pragma omp parallel master in foo()
3180 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel master' regio… in foo()
3183 #pragma omp parallel master in foo()
3185 #pragma omp taskwait in foo()
3188 #pragma omp parallel master in foo()
3190 #pragma omp flush in foo()
3193 #pragma omp parallel master in foo()
3195 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel master' re… in foo()
3198 #pragma omp parallel master in foo()
3200 #pragma omp atomic in foo()
3203 #pragma omp parallel master in foo()
3205 #pragma omp target in foo()
3208 #pragma omp parallel master in foo()
3210 #pragma omp target parallel in foo()
3213 #pragma omp parallel master in foo()
3215 #pragma omp target parallel for in foo()
3219 #pragma omp parallel master in foo()
3221 #pragma omp target enter data map(to: a) in foo()
3224 #pragma omp parallel master in foo()
3226 #pragma omp target exit data map(from: a) in foo()
3229 #pragma omp parallel master in foo()
3231 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel master' regi… in foo()
3234 #pragma omp parallel master in foo()
3236 #pragma omp taskloop in foo()
3240 #pragma omp parallel master in foo()
3242 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel master'… in foo()
3246 #pragma omp parallel master in foo()
3248 #pragma omp target update to(a) in foo()
3251 #pragma omp parallel master in foo()
3253 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
3257 #pragma omp parallel master in foo()
3259 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
3263 #pragma omp parallel master in foo()
3265 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel ma… in foo()
3269 #pragma omp parallel master in foo()
3271 #pragma omp target simd // OK in foo()
3275 #pragma omp parallel master in foo()
3277 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel m… in foo()
3281 #pragma omp parallel master in foo()
3283 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
3287 #pragma omp parallel master in foo()
3289 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
3293 #pragma omp parallel master in foo()
3295 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
3299 #pragma omp parallel master in foo()
3301 #pragma omp target teams // OK in foo()
3304 #pragma omp parallel master in foo()
3306 #pragma omp target teams distribute // OK in foo()
3310 #pragma omp parallel master in foo()
3312 #pragma omp target teams distribute parallel for // OK in foo()
3316 #pragma omp parallel master in foo()
3318 #pragma omp target teams distribute parallel for simd // OK in foo()
3322 #pragma omp parallel master in foo()
3324 #pragma omp target teams distribute simd // OK in foo()
3330 #pragma omp parallel sections in foo()
3332 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel sections' regi… in foo()
3336 #pragma omp parallel sections in foo()
3338 #pragma omp simd in foo()
3342 #pragma omp parallel sections in foo()
3344 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel sections'… in foo()
3348 #pragma omp parallel sections in foo()
3350 #pragma omp parallel in foo()
3354 #pragma omp parallel sections in foo()
3356 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel sections'… in foo()
3361 #pragma omp parallel sections in foo()
3363 #pragma omp section in foo()
3368 #pragma omp parallel sections in foo()
3370 #pragma omp section in foo()
3372 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; per… in foo()
3376 #pragma omp parallel sections in foo()
3378 #pragma omp section in foo()
3380 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
3384 #pragma omp parallel sections in foo()
3386 #pragma omp section in foo()
3388 #pragma omp critical in foo()
3392 #pragma omp parallel sections in foo()
3394 #pragma omp parallel in foo()
3396 #pragma omp single // OK in foo()
3400 #pragma omp for // OK in foo()
3403 #pragma omp for simd // OK in foo()
3406 #pragma omp sections // OK in foo()
3412 #pragma omp parallel sections in foo()
3414 #pragma omp parallel for in foo()
3418 #pragma omp parallel sections in foo()
3420 #pragma omp parallel for simd in foo()
3424 #pragma omp parallel sections in foo()
3426 #pragma omp parallel sections in foo()
3431 #pragma omp parallel sections in foo()
3433 #pragma omp task in foo()
3438 #pragma omp parallel sections in foo()
3440 #pragma omp taskyield in foo()
3442 #pragma omp parallel sections in foo()
3444 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel sections' … in foo()
3446 #pragma omp parallel sections in foo()
3448 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel sections' reg… in foo()
3450 #pragma omp parallel sections in foo()
3452 #pragma omp taskwait in foo()
3454 #pragma omp parallel sections in foo()
3456 #pragma omp flush in foo()
3458 #pragma omp parallel sections in foo()
3460 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel sections' … in foo()
3463 #pragma omp parallel sections in foo()
3465 #pragma omp atomic in foo()
3468 #pragma omp parallel sections in foo()
3470 #pragma omp target in foo()
3473 #pragma omp parallel sections in foo()
3475 #pragma omp target parallel in foo()
3478 #pragma omp parallel sections in foo()
3480 #pragma omp target parallel for in foo()
3484 #pragma omp parallel sections in foo()
3486 #pragma omp target enter data map(to: a) in foo()
3488 #pragma omp parallel sections in foo()
3490 #pragma omp target exit data map(from: a) in foo()
3492 #pragma omp parallel sections in foo()
3494 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel sections' re… in foo()
3497 #pragma omp parallel sections in foo()
3499 #pragma omp taskloop in foo()
3503 #pragma omp parallel sections in foo()
3505 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel section… in foo()
3509 #pragma omp parallel sections in foo()
3511 #pragma omp target update to(a) in foo()
3513 #pragma omp parallel sections in foo()
3515 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
3519 #pragma omp parallel sections in foo()
3521 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
3525 #pragma omp parallel sections in foo()
3527 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel se… in foo()
3531 #pragma omp parallel sections in foo()
3533 #pragma omp target simd // OK in foo()
3537 #pragma omp parallel sections in foo()
3539 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel s… in foo()
3543 #pragma omp parallel sections in foo()
3545 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
3549 #pragma omp parallel sections in foo()
3551 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
3555 #pragma omp parallel sections in foo()
3557 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
3561 #pragma omp parallel sections in foo()
3563 #pragma omp target teams // OK in foo()
3566 #pragma omp parallel sections in foo()
3568 #pragma omp target teams distribute // OK in foo()
3572 #pragma omp parallel sections in foo()
3574 #pragma omp target teams distribute parallel for // OK in foo()
3578 #pragma omp parallel sections in foo()
3580 #pragma omp target teams distribute parallel for simd // OK in foo()
3584 #pragma omp parallel sections in foo()
3586 #pragma omp target teams distribute simd // OK in foo()
3592 #pragma omp task in foo()
3593 #pragma omp for // expected-error {{region cannot be closely nested inside 'task' region; perhaps y… in foo()
3596 #pragma omp task in foo()
3597 #pragma omp simd in foo()
3600 #pragma omp task in foo()
3601 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'task' region; perh… in foo()
3604 #pragma omp task in foo()
3605 #pragma omp sections // expected-error {{region cannot be closely nested inside 'task' region; perh… in foo()
3609 #pragma omp task in foo()
3610 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
3614 #pragma omp task in foo()
3615 #pragma omp single // expected-error {{region cannot be closely nested inside 'task' region; perhap… in foo()
3617 #pragma omp task in foo()
3618 #pragma omp master // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
3620 #pragma omp task in foo()
3621 #pragma omp critical in foo()
3624 #pragma omp task in foo()
3625 #pragma omp parallel for in foo()
3628 #pragma omp task in foo()
3629 #pragma omp parallel for simd in foo()
3632 #pragma omp task in foo()
3633 #pragma omp parallel sections in foo()
3637 #pragma omp task in foo()
3638 #pragma omp task in foo()
3642 #pragma omp task in foo()
3644 #pragma omp taskyield in foo()
3647 #pragma omp task in foo()
3649 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
3652 #pragma omp task in foo()
3654 #pragma omp scan // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
3657 #pragma omp task in foo()
3659 #pragma omp taskwait in foo()
3662 #pragma omp task in foo()
3664 #pragma omp flush in foo()
3667 #pragma omp task in foo()
3669 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'task' region; perha… in foo()
3672 #pragma omp task in foo()
3674 #pragma omp atomic in foo()
3677 #pragma omp task in foo()
3679 #pragma omp target in foo()
3682 #pragma omp task in foo()
3684 #pragma omp target parallel in foo()
3687 #pragma omp task in foo()
3688 #pragma omp target parallel for in foo()
3691 #pragma omp task in foo()
3693 #pragma omp target enter data map(to: a) in foo()
3696 #pragma omp task in foo()
3698 #pragma omp target exit data map(from: a) in foo()
3701 #pragma omp task in foo()
3703 #pragma omp teams // expected-error {{region cannot be closely nested inside 'task' region; perhaps… in foo()
3706 #pragma omp task in foo()
3708 #pragma omp taskloop in foo()
3712 #pragma omp task in foo()
3714 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'task' region; pe… in foo()
3718 #pragma omp task in foo()
3720 #pragma omp target update to(a) in foo()
3723 #pragma omp task in foo()
3725 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tas… in foo()
3729 #pragma omp task in foo()
3731 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
3735 #pragma omp task in foo()
3737 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'task' regio… in foo()
3741 #pragma omp task in foo()
3743 #pragma omp target simd // OK in foo()
3747 #pragma omp task in foo()
3749 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'task' regi… in foo()
3753 #pragma omp task in foo()
3755 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'task'… in foo()
3759 #pragma omp task in foo()
3761 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
3765 #pragma omp task in foo()
3767 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
3771 #pragma omp task in foo()
3773 #pragma omp target teams // OK in foo()
3776 #pragma omp task in foo()
3778 #pragma omp target teams distribute // OK in foo()
3782 #pragma omp task in foo()
3784 #pragma omp target teams distribute parallel for // OK in foo()
3788 #pragma omp task in foo()
3790 #pragma omp target teams distribute parallel for simd // OK in foo()
3794 #pragma omp task in foo()
3796 #pragma omp target teams distribute simd // OK in foo()
3802 #pragma omp ordered in foo()
3804 #pragma omp for // expected-error {{region cannot be closely nested inside 'ordered' region; perhap… in foo()
3808 #pragma omp ordered in foo()
3810 #pragma omp simd in foo()
3814 #pragma omp ordered in foo()
3816 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'ordered' region; p… in foo()
3820 #pragma omp ordered in foo()
3822 #pragma omp parallel in foo()
3826 #pragma omp ordered in foo()
3828 #pragma omp single // expected-error {{region cannot be closely nested inside 'ordered' region; per… in foo()
3833 #pragma omp ordered in foo()
3835 #pragma omp master // OK, though second 'ordered' is redundant in foo()
3840 #pragma omp ordered in foo()
3842 #pragma omp critical in foo()
3847 #pragma omp ordered in foo()
3849 #pragma omp sections // expected-error {{region cannot be closely nested inside 'ordered' region; p… in foo()
3854 #pragma omp ordered in foo()
3856 #pragma omp parallel for ordered in foo()
3858 #pragma omp ordered // OK in foo()
3864 #pragma omp ordered in foo()
3866 #pragma omp parallel for simd ordered in foo()
3868 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
3874 #pragma omp ordered in foo()
3876 #pragma omp parallel for simd ordered in foo()
3878 #pragma omp ordered simd in foo()
3884 #pragma omp ordered in foo()
3886 #pragma omp parallel for in foo()
3890 #pragma omp ordered in foo()
3892 #pragma omp parallel for simd in foo()
3896 #pragma omp ordered in foo()
3898 #pragma omp parallel sections in foo()
3903 #pragma omp ordered in foo()
3905 #pragma omp task in foo()
3910 #pragma omp ordered in foo()
3912 #pragma omp taskyield in foo()
3915 #pragma omp ordered in foo()
3917 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'ordered' region}} in foo()
3920 #pragma omp ordered in foo()
3922 #pragma omp scan // expected-error {{region cannot be closely nested inside 'ordered' region}} in foo()
3925 #pragma omp ordered in foo()
3927 #pragma omp taskwait in foo()
3930 #pragma omp ordered in foo()
3932 #pragma omp flush in foo()
3935 #pragma omp ordered in foo()
3937 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'ordered' region; pe… in foo()
3940 #pragma omp ordered in foo()
3942 #pragma omp atomic in foo()
3945 #pragma omp ordered in foo()
3947 #pragma omp target in foo()
3950 #pragma omp ordered in foo()
3952 #pragma omp target parallel in foo()
3955 #pragma omp ordered in foo()
3957 #pragma omp target parallel for ordered in foo()
3959 #pragma omp ordered // OK in foo()
3965 #pragma omp ordered in foo()
3967 #pragma omp target parallel for in foo()
3971 #pragma omp ordered in foo()
3973 #pragma omp target enter data map(to: a) in foo()
3976 #pragma omp ordered in foo()
3978 #pragma omp target exit data map(from: a) in foo()
3981 #pragma omp ordered in foo()
3983 #pragma omp teams // expected-error {{region cannot be closely nested inside 'ordered' region; perh… in foo()
3986 #pragma omp ordered in foo()
3988 #pragma omp taskloop in foo()
3992 #pragma omp ordered in foo()
3994 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'ordered' region;… in foo()
3998 #pragma omp ordered in foo()
4001 #pragma omp target update to(a) in foo()
4004 #pragma omp ordered in foo()
4006 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'ord… in foo()
4010 #pragma omp ordered in foo()
4012 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
4016 #pragma omp ordered in foo()
4018 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'ordered' re… in foo()
4022 #pragma omp ordered in foo()
4024 #pragma omp target simd // OK in foo()
4028 #pragma omp ordered in foo()
4030 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'ordered' r… in foo()
4034 #pragma omp ordered in foo()
4036 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'order… in foo()
4040 #pragma omp ordered in foo()
4042 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
4046 #pragma omp ordered in foo()
4048 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
4052 #pragma omp ordered in foo()
4054 #pragma omp target teams // OK in foo()
4057 #pragma omp ordered in foo()
4059 #pragma omp target teams distribute // OK in foo()
4063 #pragma omp ordered in foo()
4065 #pragma omp target teams distribute parallel for // OK in foo()
4069 #pragma omp ordered in foo()
4071 #pragma omp target teams distribute parallel for simd // OK in foo()
4075 #pragma omp ordered in foo()
4077 #pragma omp target teams distribute simd // OK in foo()
4083 #pragma omp atomic in foo()
4087 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4091 #pragma omp atomic in foo()
4095 #pragma omp simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4099 #pragma omp atomic in foo()
4103 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4107 #pragma omp atomic in foo()
4111 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4115 #pragma omp atomic in foo()
4119 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4124 #pragma omp atomic in foo()
4128 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
4133 #pragma omp atomic in foo()
4137 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4142 #pragma omp atomic in foo()
4146 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4151 #pragma omp atomic in foo()
4155 #pragma omp parallel master // expected-error {{OpenMP constructs may not be nested inside an atomi… in foo()
4160 #pragma omp atomic in foo()
4164 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4169 #pragma omp atomic in foo()
4173 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic r… in foo()
4177 #pragma omp atomic in foo()
4181 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside an ato… in foo()
4185 #pragma omp atomic in foo()
4189 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside an ato… in foo()
4194 #pragma omp atomic in foo()
4198 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4203 #pragma omp atomic in foo()
4207 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside an atomic regi… in foo()
4210 #pragma omp atomic in foo()
4214 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
4217 #pragma omp atomic in foo()
4221 #pragma omp scan // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4224 #pragma omp atomic in foo()
4228 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4231 #pragma omp atomic in foo()
4235 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4238 #pragma omp atomic in foo()
4242 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
4245 #pragma omp atomic in foo()
4249 #pragma omp atomic // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4252 #pragma omp atomic in foo()
4256 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4259 #pragma omp atomic in foo()
4263 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside an atomi… in foo()
4266 #pragma omp atomic in foo()
4270 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside an a… in foo()
4274 #pragma omp atomic in foo()
4278 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
4281 #pragma omp atomic in foo()
4285 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
4288 #pragma omp atomic in foo()
4292 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4295 #pragma omp atomic in foo()
4299 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4303 #pragma omp atomic in foo()
4307 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside an atomic reg… in foo()
4311 #pragma omp atomic in foo()
4315 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside an a… in foo()
4318 #pragma omp atomic in foo()
4322 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
4326 #pragma omp atomic in foo()
4330 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
4334 #pragma omp atomic in foo()
4338 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside an atomi… in foo()
4342 #pragma omp atomic in foo()
4346 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside an atomic re… in foo()
4350 #pragma omp atomic in foo()
4354 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside an atom… in foo()
4358 #pragma omp atomic in foo()
4362 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside an… in foo()
4366 #pragma omp atomic in foo()
4370 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
4374 #pragma omp atomic in foo()
4378 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
4382 #pragma omp atomic in foo()
4386 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside an atomic r… in foo()
4389 #pragma omp atomic in foo()
4393 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
4397 #pragma omp atomic in foo()
4401 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
4405 #pragma omp atomic in foo()
4409 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
4413 #pragma omp atomic in foo()
4417 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
4423 #pragma omp target in foo()
4424 #pragma omp parallel in foo()
4426 #pragma omp target in foo()
4427 #pragma omp for in foo()
4430 #pragma omp target in foo()
4431 #pragma omp simd in foo()
4434 #pragma omp target in foo()
4435 #pragma omp for simd in foo()
4438 #pragma omp target in foo()
4439 #pragma omp sections in foo()
4443 #pragma omp target in foo()
4444 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
4448 #pragma omp target in foo()
4449 #pragma omp single in foo()
4452 #pragma omp target in foo()
4453 #pragma omp master in foo()
4457 #pragma omp target in foo()
4458 #pragma omp critical in foo()
4462 #pragma omp target in foo()
4463 #pragma omp parallel for in foo()
4466 #pragma omp target in foo()
4467 #pragma omp parallel for simd in foo()
4470 #pragma omp target in foo()
4471 #pragma omp parallel sections in foo()
4475 #pragma omp target in foo()
4476 #pragma omp task in foo()
4480 #pragma omp target in foo()
4482 #pragma omp taskyield in foo()
4485 #pragma omp target in foo()
4487 #pragma omp barrier in foo()
4490 #pragma omp target in foo()
4492 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target' region; perhap… in foo()
4495 #pragma omp target in foo()
4497 #pragma omp taskwait in foo()
4500 #pragma omp target in foo()
4502 #pragma omp flush in foo()
4505 #pragma omp target in foo()
4507 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target' region; per… in foo()
4510 #pragma omp target in foo()
4512 #pragma omp atomic in foo()
4515 #pragma omp target in foo()
4517 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
4520 #pragma omp target in foo()
4522 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
4525 #pragma omp target in foo()
4526 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
4529 #pragma omp target in foo()
4531 #pragma omp teams in foo()
4534 #pragma omp target // expected-error {{target construct with nested teams region contains statement… in foo()
4536 #pragma omp teams // expected-note {{directive outside teams construct here}} in foo()
4538 #pragma omp teams // expected-note {{nested teams construct here}} in foo()
4541 #pragma omp target // expected-error {{target construct with nested teams region contains statement… in foo()
4544 #pragma omp teams // expected-note {{nested teams construct here}} in foo()
4547 #pragma omp target // expected-error {{target construct with nested teams region contains statement… in foo()
4550 #pragma omp teams // expected-note {{nested teams construct here}} in foo()
4553 #pragma omp target in foo()
4555 #pragma omp taskloop in foo()
4559 #pragma omp target in foo()
4561 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target' region; … in foo()
4565 #pragma omp target in foo()
4567 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
4569 #pragma omp target in foo()
4571 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
4573 #pragma omp target in foo()
4575 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
4577 #pragma omp target in foo()
4579 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
4583 #pragma omp target in foo()
4585 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
4589 #pragma omp target in foo()
4591 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target' reg… in foo()
4595 #pragma omp target in foo()
4597 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
4601 #pragma omp target in foo()
4603 #pragma omp teams distribute // OK in foo()
4607 #pragma omp target in foo()
4609 #pragma omp teams distribute simd // OK in foo()
4613 #pragma omp target in foo()
4615 #pragma omp teams distribute parallel for simd // OK in foo()
4619 #pragma omp target in foo()
4621 #pragma omp teams distribute parallel for // OK in foo()
4625 #pragma omp target in foo()
4627 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
4631 #pragma omp target in foo()
4633 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
4637 #pragma omp target in foo()
4639 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
4643 #pragma omp target in foo()
4645 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
4649 #pragma omp target in foo()
4651 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
4657 #pragma omp target parallel in foo()
4658 #pragma omp parallel in foo()
4660 #pragma omp target parallel in foo()
4661 #pragma omp for in foo()
4664 #pragma omp target parallel in foo()
4665 #pragma omp simd in foo()
4668 #pragma omp target parallel in foo()
4669 #pragma omp for simd in foo()
4672 #pragma omp target parallel in foo()
4673 #pragma omp sections in foo()
4677 #pragma omp target parallel in foo()
4678 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
4682 #pragma omp target parallel in foo()
4683 #pragma omp single in foo()
4686 #pragma omp target parallel in foo()
4687 #pragma omp master in foo()
4691 #pragma omp target in foo()
4692 #pragma omp parallel master in foo()
4696 #pragma omp target parallel in foo()
4697 #pragma omp critical in foo()
4701 #pragma omp target parallel in foo()
4702 #pragma omp parallel for in foo()
4705 #pragma omp target parallel in foo()
4706 #pragma omp parallel for simd in foo()
4709 #pragma omp target parallel in foo()
4710 #pragma omp parallel sections in foo()
4714 #pragma omp target parallel in foo()
4715 #pragma omp task in foo()
4719 #pragma omp target parallel in foo()
4721 #pragma omp taskyield in foo()
4724 #pragma omp target parallel in foo()
4726 #pragma omp barrier in foo()
4729 #pragma omp target parallel in foo()
4731 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel' regio… in foo()
4734 #pragma omp target parallel in foo()
4736 #pragma omp taskwait in foo()
4739 #pragma omp target parallel in foo()
4741 #pragma omp flush in foo()
4744 #pragma omp target parallel in foo()
4746 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel' re… in foo()
4749 #pragma omp target parallel in foo()
4751 #pragma omp atomic in foo()
4754 #pragma omp target parallel in foo()
4756 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel' region}} in foo()
4759 #pragma omp target parallel in foo()
4761 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel' re… in foo()
4764 #pragma omp target parallel in foo()
4765 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel… in foo()
4768 #pragma omp target parallel in foo()
4770 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' regi… in foo()
4773 #pragma omp target parallel in foo()
4776 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' reg… in foo()
4779 #pragma omp target parallel in foo()
4781 #pragma omp taskloop in foo()
4785 #pragma omp target parallel in foo()
4787 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel'… in foo()
4791 #pragma omp target parallel in foo()
4793 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
4795 #pragma omp target parallel in foo()
4797 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
4799 #pragma omp target parallel in foo()
4801 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel… in foo()
4803 #pragma omp target parallel in foo()
4805 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
4809 #pragma omp target parallel in foo()
4811 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
4815 #pragma omp target parallel in foo()
4817 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target para… in foo()
4821 #pragma omp target parallel in foo()
4823 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel' region… in foo()
4827 #pragma omp target parallel in foo()
4829 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target par… in foo()
4833 #pragma omp target parallel in foo()
4835 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
4839 #pragma omp target parallel in foo()
4841 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
4845 #pragma omp target parallel in foo()
4847 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
4851 #pragma omp target parallel in foo()
4853 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel' regio… in foo()
4856 #pragma omp target parallel in foo()
4858 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target para… in foo()
4862 #pragma omp target parallel in foo()
4864 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
4868 #pragma omp target parallel in foo()
4870 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
4874 #pragma omp target parallel in foo()
4876 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
4882 #pragma omp target parallel for in foo()
4884 #pragma omp for // expected-error {{region cannot be closely nested inside 'target parallel for' re… in foo()
4888 #pragma omp target parallel for in foo()
4890 #pragma omp simd in foo()
4894 #pragma omp target parallel for in foo()
4896 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target parallel fo… in foo()
4900 #pragma omp target parallel for in foo()
4902 #pragma omp parallel in foo()
4906 #pragma omp target parallel for in foo()
4908 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target parallel fo… in foo()
4913 #pragma omp target parallel for in foo()
4915 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
4920 #pragma omp target parallel for in foo()
4922 #pragma omp single // expected-error {{region cannot be closely nested inside 'target parallel for'… in foo()
4928 #pragma omp target parallel for in foo()
4930 #pragma omp master // expected-error {{region cannot be closely nested inside 'target parallel for'… in foo()
4936 #pragma omp target parallel for in foo()
4938 #pragma omp critical in foo()
4944 #pragma omp target parallel for in foo()
4946 #pragma omp parallel in foo()
4948 #pragma omp single // OK in foo()
4952 #pragma omp for // OK in foo()
4955 #pragma omp for simd // OK in foo()
4958 #pragma omp sections // OK in foo()
4964 #pragma omp target parallel for in foo()
4966 #pragma omp parallel for in foo()
4970 #pragma omp target parallel for in foo()
4972 #pragma omp parallel for simd in foo()
4976 #pragma omp target parallel for in foo()
4978 #pragma omp parallel sections in foo()
4983 #pragma omp target parallel for in foo()
4985 #pragma omp task in foo()
4990 #pragma omp target parallel for in foo()
4992 #pragma omp taskyield in foo()
4995 #pragma omp target parallel for in foo()
4997 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target parallel for… in foo()
5000 #pragma omp target parallel for in foo()
5002 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel for' r… in foo()
5005 #pragma omp target parallel for in foo()
5007 #pragma omp taskwait in foo()
5010 #pragma omp target parallel for in foo()
5012 #pragma omp flush in foo()
5015 #pragma omp target parallel for in foo()
5017 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel for… in foo()
5020 #pragma omp target parallel for ordered in foo()
5022 #pragma omp ordered // OK in foo()
5025 #pragma omp target parallel for in foo()
5027 #pragma omp atomic in foo()
5030 #pragma omp target parallel for in foo()
5032 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel for' region}} in foo()
5035 #pragma omp target parallel for in foo()
5037 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel for… in foo()
5040 #pragma omp target parallel for in foo()
5042 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel… in foo()
5046 #pragma omp target parallel for in foo()
5048 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
5051 #pragma omp target parallel for in foo()
5053 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
5056 #pragma omp target parallel for in foo()
5058 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel for' … in foo()
5061 #pragma omp target parallel for in foo()
5063 #pragma omp taskloop in foo()
5067 #pragma omp target parallel for in foo()
5069 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel … in foo()
5073 #pragma omp target parallel for in foo()
5075 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel… in foo()
5077 #pragma omp target parallel for in foo()
5079 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
5083 #pragma omp target parallel for in foo()
5085 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
5089 #pragma omp target parallel for in foo()
5091 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target para… in foo()
5095 #pragma omp target parallel for in foo()
5097 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel for' re… in foo()
5101 #pragma omp target parallel for in foo()
5103 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target par… in foo()
5107 #pragma omp target parallel for in foo()
5109 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
5113 #pragma omp target parallel for in foo()
5115 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
5119 #pragma omp target parallel for in foo()
5121 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
5125 #pragma omp target parallel for in foo()
5127 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel for' r… in foo()
5130 #pragma omp target parallel for in foo()
5132 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target para… in foo()
5136 #pragma omp target parallel for in foo()
5138 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
5142 #pragma omp target parallel for in foo()
5144 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
5148 #pragma omp target parallel for in foo()
5150 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
5156 #pragma omp teams // omp45-error {{orphaned 'omp teams' directives are prohibited; perhaps you forg… in foo()
5158 #pragma omp target in foo()
5159 #pragma omp teams in foo()
5160 #pragma omp parallel in foo()
5162 #pragma omp target in foo()
5163 #pragma omp teams in foo()
5164 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams' region; perhaps … in foo()
5167 #pragma omp target in foo()
5168 #pragma omp teams in foo()
5169 #pragma omp simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
5172 #pragma omp target in foo()
5173 #pragma omp teams in foo()
5174 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
5177 #pragma omp target in foo()
5178 #pragma omp teams in foo()
5179 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
5183 #pragma omp target in foo()
5184 #pragma omp teams in foo()
5185 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
5189 #pragma omp target in foo()
5190 #pragma omp teams in foo()
5191 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams' region; perha… in foo()
5194 #pragma omp target in foo()
5195 #pragma omp teams in foo()
5196 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams' region; perha… in foo()
5200 #pragma omp target in foo()
5201 #pragma omp teams in foo()
5202 #pragma omp critical // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
5206 #pragma omp target in foo()
5207 #pragma omp teams in foo()
5208 #pragma omp parallel for in foo()
5211 #pragma omp target in foo()
5212 #pragma omp teams in foo()
5213 #pragma omp parallel for simd in foo()
5216 #pragma omp target in foo()
5217 #pragma omp teams in foo()
5218 #pragma omp parallel sections in foo()
5222 #pragma omp target in foo()
5223 #pragma omp teams in foo()
5224 #pragma omp task // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
5228 #pragma omp target in foo()
5229 #pragma omp teams in foo()
5231 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'teams' region; pe… in foo()
5234 #pragma omp target in foo()
5235 #pragma omp teams in foo()
5237 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams' region; perh… in foo()
5240 #pragma omp target in foo()
5241 #pragma omp teams in foo()
5243 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
5246 #pragma omp target in foo()
5247 #pragma omp teams in foo()
5249 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
5252 #pragma omp target in foo()
5253 #pragma omp teams in foo()
5255 #pragma omp flush // expected-error {{region cannot be closely nested inside 'teams' region; perhap… in foo()
5258 #pragma omp target in foo()
5259 #pragma omp teams in foo()
5261 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams' region; perh… in foo()
5264 #pragma omp target in foo()
5265 #pragma omp teams in foo()
5267 #pragma omp atomic // expected-error {{region cannot be closely nested inside 'teams' region; perha… in foo()
5270 #pragma omp target in foo()
5271 #pragma omp teams in foo()
5273 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
5276 #pragma omp target in foo()
5277 #pragma omp teams in foo()
5279 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
5282 #pragma omp target in foo()
5283 #pragma omp teams in foo()
5284 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
5287 #pragma omp target in foo()
5288 #pragma omp teams in foo()
5290 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
5293 #pragma omp target in foo()
5294 #pragma omp teams in foo()
5296 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
5299 #pragma omp target in foo()
5300 #pragma omp teams in foo()
5302 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams' region; perhap… in foo()
5305 #pragma omp target in foo()
5306 #pragma omp teams in foo()
5308 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
5312 #pragma omp target in foo()
5313 #pragma omp teams in foo()
5314 #pragma omp distribute in foo()
5317 #pragma omp target in foo()
5318 #pragma omp teams in foo()
5319 #pragma omp distribute in foo()
5322 #pragma omp distribute in foo()
5325 #pragma omp target in foo()
5326 #pragma omp teams in foo()
5328 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
5330 #pragma omp target in foo()
5331 #pragma omp teams in foo()
5333 #pragma omp distribute parallel for in foo()
5336 #pragma omp distribute parallel for in foo()
5340 #pragma omp target in foo()
5341 #pragma omp teams in foo()
5343 #pragma omp distribute parallel for simd in foo()
5346 #pragma omp distribute parallel for simd in foo()
5350 #pragma omp target in foo()
5351 #pragma omp teams in foo()
5353 #pragma omp distribute simd in foo()
5356 #pragma omp distribute simd in foo()
5360 #pragma omp target in foo()
5361 #pragma omp teams in foo()
5363 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
5367 #pragma omp target in foo()
5368 #pragma omp teams in foo()
5370 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams' reg… in foo()
5374 #pragma omp target in foo()
5375 #pragma omp teams in foo()
5377 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
5381 #pragma omp target in foo()
5382 #pragma omp teams in foo()
5384 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
5388 #pragma omp target in foo()
5389 #pragma omp teams in foo()
5391 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
5395 #pragma omp target in foo()
5396 #pragma omp teams in foo()
5398 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
5401 #pragma omp target in foo()
5402 #pragma omp teams in foo()
5404 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
5408 #pragma omp target in foo()
5409 #pragma omp teams in foo()
5411 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
5415 #pragma omp target in foo()
5416 #pragma omp teams in foo()
5418 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
5422 #pragma omp target in foo()
5423 #pragma omp teams in foo()
5425 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
5431 #pragma omp taskloop in foo()
5433 #pragma omp for // expected-error {{region cannot be closely nested inside 'taskloop' region; perha… in foo()
5437 #pragma omp taskloop in foo()
5439 #pragma omp simd in foo()
5443 #pragma omp taskloop in foo()
5445 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'taskloop' region; … in foo()
5449 #pragma omp taskloop in foo()
5451 #pragma omp parallel in foo()
5455 #pragma omp taskloop in foo()
5457 #pragma omp sections // expected-error {{region cannot be closely nested inside 'taskloop' region; … in foo()
5462 #pragma omp taskloop in foo()
5464 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
5469 #pragma omp taskloop in foo()
5471 #pragma omp single // expected-error {{region cannot be closely nested inside 'taskloop' region; pe… in foo()
5477 #pragma omp taskloop in foo()
5479 #pragma omp master // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
5484 #pragma omp taskloop in foo()
5486 #pragma omp critical in foo()
5491 #pragma omp taskloop in foo()
5493 #pragma omp parallel in foo()
5495 #pragma omp single // OK in foo()
5499 #pragma omp for // OK in foo()
5502 #pragma omp sections // OK in foo()
5508 #pragma omp taskloop in foo()
5510 #pragma omp parallel for in foo()
5514 #pragma omp taskloop in foo()
5516 #pragma omp parallel for simd in foo()
5520 #pragma omp taskloop in foo()
5522 #pragma omp parallel sections in foo()
5527 #pragma omp taskloop in foo()
5529 #pragma omp task in foo()
5534 #pragma omp taskloop in foo()
5536 #pragma omp taskyield in foo()
5539 #pragma omp taskloop in foo()
5541 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
5544 #pragma omp taskloop in foo()
5546 #pragma omp scan // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
5549 #pragma omp taskloop in foo()
5551 #pragma omp taskwait in foo()
5554 #pragma omp taskloop in foo()
5556 #pragma omp flush in foo()
5559 #pragma omp taskloop in foo()
5561 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'taskloop' region; p… in foo()
5564 #pragma omp taskloop in foo()
5566 #pragma omp atomic in foo()
5569 #pragma omp taskloop in foo()
5571 #pragma omp target in foo()
5574 #pragma omp taskloop in foo()
5576 #pragma omp target parallel in foo()
5579 #pragma omp taskloop in foo()
5581 #pragma omp target parallel for in foo()
5585 #pragma omp taskloop in foo()
5587 #pragma omp target enter data map(to: a) in foo()
5590 #pragma omp taskloop in foo()
5592 #pragma omp target exit data map(from: a) in foo()
5595 #pragma omp taskloop in foo()
5597 #pragma omp teams // expected-error {{region cannot be closely nested inside 'taskloop' region; per… in foo()
5600 #pragma omp taskloop in foo()
5602 #pragma omp taskloop in foo()
5606 #pragma omp taskloop in foo()
5608 #pragma omp target update to(a) in foo()
5611 #pragma omp taskloop in foo()
5613 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'taskloop' region… in foo()
5617 #pragma omp taskloop in foo()
5619 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tas… in foo()
5623 #pragma omp taskloop in foo()
5625 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
5629 #pragma omp taskloop in foo()
5631 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'taskloop' r… in foo()
5635 #pragma omp taskloop in foo()
5637 #pragma omp target simd // OK in foo()
5641 #pragma omp taskloop in foo()
5643 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'taskloop' … in foo()
5647 #pragma omp taskloop in foo()
5649 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'taskl… in foo()
5653 #pragma omp taskloop in foo()
5655 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
5659 #pragma omp taskloop in foo()
5661 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
5665 #pragma omp taskloop in foo()
5667 #pragma omp target teams // OK in foo()
5670 #pragma omp taskloop in foo()
5672 #pragma omp target teams distribute // OK in foo()
5676 #pragma omp taskloop in foo()
5678 #pragma omp target teams distribute parallel for // OK in foo()
5682 #pragma omp taskloop in foo()
5684 #pragma omp target teams distribute parallel for simd // OK in foo()
5688 #pragma omp taskloop in foo()
5690 #pragma omp target teams distribute simd // OK in foo()
5694 #pragma omp taskloop in foo()
5696 #pragma omp cancel taskgroup // omp45-error {{region cannot be closely nested inside 'taskloop' reg… in foo()
5697 #pragma omp cancellation point taskgroup // omp45-error {{region cannot be closely nested inside 't… in foo()
5699 #pragma omp taskloop in foo()
5701 #pragma omp cancel parallel // expected-error {{region cannot be closely nested inside 'taskloop' r… in foo()
5702 #pragma omp cancellation point parallel // expected-error {{region cannot be closely nested inside … in foo()
5704 #pragma omp master taskloop in foo()
5706 #pragma omp cancel taskgroup // omp45-error {{region cannot be closely nested inside 'master tasklo… in foo()
5707 #pragma omp cancellation point taskgroup // omp45-error {{region cannot be closely nested inside 'm… in foo()
5709 #pragma omp master taskloop in foo()
5711 #pragma omp cancel parallel // expected-error {{region cannot be closely nested inside 'master task… in foo()
5712 #pragma omp cancellation point parallel // expected-error {{region cannot be closely nested inside … in foo()
5714 #pragma omp parallel master taskloop in foo()
5716 #pragma omp cancel taskgroup // omp45-error {{region cannot be closely nested inside 'parallel mast… in foo()
5717 #pragma omp cancellation point taskgroup // omp45-error {{region cannot be closely nested inside 'p… in foo()
5719 #pragma omp parallel master taskloop in foo()
5721 #pragma omp cancel parallel // expected-error {{region cannot be closely nested inside 'parallel ma… in foo()
5722 #pragma omp cancellation point parallel // expected-error {{region cannot be closely nested inside … in foo()
5726 #pragma omp target in foo()
5727 #pragma omp teams in foo()
5728 #pragma omp distribute in foo()
5730 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute' regi… in foo()
5734 #pragma omp target in foo()
5735 #pragma omp teams in foo()
5736 #pragma omp distribute in foo()
5738 #pragma omp for in foo()
5742 #pragma omp target in foo()
5743 #pragma omp teams in foo()
5744 #pragma omp distribute in foo()
5746 #pragma omp simd in foo()
5750 #pragma omp target in foo()
5751 #pragma omp teams in foo()
5752 #pragma omp distribute in foo()
5754 #pragma omp for simd in foo()
5758 #pragma omp target in foo()
5759 #pragma omp teams in foo()
5760 #pragma omp distribute in foo()
5762 #pragma omp parallel in foo()
5766 #pragma omp target in foo()
5767 #pragma omp teams in foo()
5768 #pragma omp distribute in foo()
5770 #pragma omp sections in foo()
5775 #pragma omp target in foo()
5776 #pragma omp teams in foo()
5777 #pragma omp distribute in foo()
5779 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
5784 #pragma omp target in foo()
5785 #pragma omp teams in foo()
5786 #pragma omp distribute in foo()
5788 #pragma omp single in foo()
5793 #pragma omp target in foo()
5794 #pragma omp teams in foo()
5795 #pragma omp distribute in foo()
5797 #pragma omp master in foo()
5802 #pragma omp target in foo()
5803 #pragma omp teams in foo()
5804 #pragma omp distribute in foo()
5806 #pragma omp critical in foo()
5811 #pragma omp target in foo()
5812 #pragma omp teams in foo()
5813 #pragma omp distribute in foo()
5815 #pragma omp parallel in foo()
5817 #pragma omp single in foo()
5823 #pragma omp target in foo()
5824 #pragma omp teams in foo()
5825 #pragma omp distribute in foo()
5827 #pragma omp parallel for in foo()
5831 #pragma omp target in foo()
5832 #pragma omp teams in foo()
5833 #pragma omp distribute in foo()
5835 #pragma omp parallel for simd in foo()
5839 #pragma omp target in foo()
5840 #pragma omp teams in foo()
5841 #pragma omp distribute in foo()
5843 #pragma omp parallel sections in foo()
5848 #pragma omp target in foo()
5849 #pragma omp teams in foo()
5850 #pragma omp distribute in foo()
5852 #pragma omp task in foo()
5857 #pragma omp target in foo()
5858 #pragma omp teams in foo()
5859 #pragma omp distribute in foo()
5861 #pragma omp taskyield in foo()
5864 #pragma omp target in foo()
5865 #pragma omp teams in foo()
5866 #pragma omp distribute in foo()
5868 #pragma omp barrier in foo()
5871 #pragma omp target in foo()
5872 #pragma omp teams in foo()
5873 #pragma omp distribute in foo()
5875 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute' region; pe… in foo()
5878 #pragma omp target in foo()
5879 #pragma omp teams in foo()
5880 #pragma omp distribute in foo()
5882 #pragma omp taskwait in foo()
5885 #pragma omp target in foo()
5886 #pragma omp teams in foo()
5887 #pragma omp distribute in foo()
5889 #pragma omp flush in foo()
5892 #pragma omp target in foo()
5893 #pragma omp teams in foo()
5894 #pragma omp distribute in foo()
5896 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute' region;… in foo()
5899 #pragma omp target in foo()
5900 #pragma omp teams in foo()
5901 #pragma omp distribute in foo()
5903 #pragma omp atomic in foo()
5906 #pragma omp target in foo()
5907 #pragma omp teams in foo()
5908 #pragma omp distribute in foo()
5910 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
5913 #pragma omp target in foo()
5914 #pragma omp teams in foo()
5915 #pragma omp distribute in foo()
5917 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
5920 #pragma omp target in foo()
5921 #pragma omp teams in foo()
5922 #pragma omp distribute in foo()
5924 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
5928 #pragma omp target in foo()
5929 #pragma omp teams in foo()
5930 #pragma omp distribute in foo()
5932 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
5935 #pragma omp target in foo()
5936 #pragma omp teams in foo()
5937 #pragma omp distribute in foo()
5939 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
5942 #pragma omp target in foo()
5943 #pragma omp teams in foo()
5944 #pragma omp distribute in foo()
5946 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute' region; p… in foo()
5949 #pragma omp target in foo()
5950 #pragma omp teams in foo()
5951 #pragma omp distribute in foo()
5953 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
5956 #pragma omp target in foo()
5957 #pragma omp teams in foo()
5958 #pragma omp distribute in foo()
5960 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
5964 #pragma omp target in foo()
5965 #pragma omp teams in foo()
5966 #pragma omp distribute in foo()
5968 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'distribute… in foo()
5972 #pragma omp target in foo()
5973 #pragma omp teams in foo()
5974 #pragma omp distribute in foo()
5976 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'distr… in foo()
5980 #pragma omp target in foo()
5981 #pragma omp teams in foo()
5982 #pragma omp distribute in foo()
5984 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
5988 #pragma omp target in foo()
5989 #pragma omp teams in foo()
5990 #pragma omp distribute in foo()
5992 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
5996 #pragma omp target in foo()
5997 #pragma omp teams in foo()
5998 #pragma omp distribute in foo()
6000 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
6003 #pragma omp target in foo()
6004 #pragma omp teams in foo()
6005 #pragma omp distribute in foo()
6007 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
6011 #pragma omp target in foo()
6012 #pragma omp teams in foo()
6013 #pragma omp distribute in foo()
6015 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
6019 #pragma omp target in foo()
6020 #pragma omp teams in foo()
6021 #pragma omp distribute in foo()
6023 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
6027 #pragma omp target in foo()
6028 #pragma omp teams in foo()
6029 #pragma omp distribute in foo()
6031 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
6037 #pragma omp target in foo()
6038 #pragma omp teams in foo()
6039 #pragma omp distribute parallel for in foo()
6041 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'dis… in foo()
6045 #pragma omp target in foo()
6046 #pragma omp teams in foo()
6047 #pragma omp distribute parallel for in foo()
6049 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute paral… in foo()
6053 #pragma omp target in foo()
6054 #pragma omp teams in foo()
6055 #pragma omp distribute parallel for in foo()
6057 #pragma omp for // expected-error {{region cannot be closely nested inside 'distribute parallel for… in foo()
6061 #pragma omp target in foo()
6062 #pragma omp teams in foo()
6063 #pragma omp distribute parallel for in foo()
6065 #pragma omp simd in foo()
6069 #pragma omp target in foo()
6070 #pragma omp teams in foo()
6071 #pragma omp distribute parallel for in foo()
6073 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'distribute paralle… in foo()
6077 #pragma omp target in foo()
6078 #pragma omp teams in foo()
6079 #pragma omp distribute parallel for in foo()
6081 #pragma omp parallel in foo()
6085 #pragma omp target in foo()
6086 #pragma omp teams in foo()
6087 #pragma omp distribute parallel for in foo()
6089 #pragma omp sections // expected-error {{region cannot be closely nested inside 'distribute paralle… in foo()
6094 #pragma omp target in foo()
6095 #pragma omp teams in foo()
6096 #pragma omp distribute parallel for in foo()
6098 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
6103 #pragma omp target in foo()
6104 #pragma omp teams in foo()
6105 #pragma omp distribute parallel for in foo()
6107 #pragma omp single // expected-error {{region cannot be closely nested inside 'distribute parallel … in foo()
6112 #pragma omp target in foo()
6113 #pragma omp teams in foo()
6114 #pragma omp distribute parallel for in foo()
6116 #pragma omp master // expected-error {{region cannot be closely nested inside 'distribute parallel … in foo()
6121 #pragma omp target in foo()
6122 #pragma omp teams in foo()
6123 #pragma omp distribute parallel for in foo()
6125 #pragma omp critical in foo()
6130 #pragma omp target in foo()
6131 #pragma omp teams in foo()
6132 #pragma omp distribute parallel for in foo()
6134 #pragma omp parallel in foo()
6136 #pragma omp single in foo()
6142 #pragma omp target in foo()
6143 #pragma omp teams in foo()
6144 #pragma omp distribute parallel for in foo()
6146 #pragma omp parallel for in foo()
6150 #pragma omp target in foo()
6151 #pragma omp teams in foo()
6152 #pragma omp distribute parallel for in foo()
6154 #pragma omp parallel for simd in foo()
6158 #pragma omp target in foo()
6159 #pragma omp teams in foo()
6160 #pragma omp distribute parallel for in foo()
6162 #pragma omp parallel sections in foo()
6167 #pragma omp target in foo()
6168 #pragma omp teams in foo()
6169 #pragma omp distribute parallel for in foo()
6171 #pragma omp task in foo()
6176 #pragma omp target in foo()
6177 #pragma omp teams in foo()
6178 #pragma omp distribute parallel for in foo()
6180 #pragma omp taskyield in foo()
6183 #pragma omp target in foo()
6184 #pragma omp teams in foo()
6185 #pragma omp distribute parallel for in foo()
6187 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'distribute parallel… in foo()
6190 #pragma omp target in foo()
6191 #pragma omp teams in foo()
6192 #pragma omp distribute parallel for in foo()
6194 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute parallel fo… in foo()
6197 #pragma omp target in foo()
6198 #pragma omp teams in foo()
6199 #pragma omp distribute parallel for in foo()
6201 #pragma omp taskwait in foo()
6204 #pragma omp target in foo()
6205 #pragma omp teams in foo()
6206 #pragma omp distribute parallel for in foo()
6208 #pragma omp flush in foo()
6211 #pragma omp target in foo()
6212 #pragma omp teams in foo()
6213 #pragma omp distribute parallel for in foo()
6215 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute parallel… in foo()
6218 #pragma omp target in foo()
6219 #pragma omp teams in foo()
6220 #pragma omp distribute parallel for in foo()
6222 #pragma omp atomic in foo()
6225 #pragma omp target in foo()
6226 #pragma omp teams in foo()
6227 #pragma omp distribute parallel for in foo()
6229 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
6232 #pragma omp target in foo()
6233 #pragma omp teams in foo()
6234 #pragma omp distribute parallel for in foo()
6236 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
6239 #pragma omp target in foo()
6240 #pragma omp teams in foo()
6241 #pragma omp distribute parallel for in foo()
6243 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
6247 #pragma omp target in foo()
6248 #pragma omp teams in foo()
6249 #pragma omp distribute parallel for in foo()
6251 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
6254 #pragma omp target in foo()
6255 #pragma omp teams in foo()
6256 #pragma omp distribute parallel for in foo()
6258 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
6261 #pragma omp target in foo()
6262 #pragma omp teams in foo()
6263 #pragma omp distribute parallel for in foo()
6265 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute parallel f… in foo()
6268 #pragma omp target in foo()
6269 #pragma omp teams in foo()
6270 #pragma omp distribute parallel for in foo()
6272 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
6275 #pragma omp target in foo()
6276 #pragma omp teams in foo()
6277 #pragma omp distribute parallel for in foo()
6279 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'distribute … in foo()
6283 #pragma omp target in foo()
6284 #pragma omp teams in foo()
6285 #pragma omp distribute parallel for in foo()
6287 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'distribute… in foo()
6291 #pragma omp target in foo()
6292 #pragma omp teams in foo()
6293 #pragma omp distribute parallel for in foo()
6295 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'distr… in foo()
6299 #pragma omp target in foo()
6300 #pragma omp teams in foo()
6301 #pragma omp distribute parallel for in foo()
6303 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
6307 #pragma omp target in foo()
6308 #pragma omp teams in foo()
6309 #pragma omp distribute parallel for in foo()
6311 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
6315 #pragma omp target in foo()
6316 #pragma omp teams in foo()
6317 #pragma omp distribute parallel for in foo()
6319 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
6322 #pragma omp target in foo()
6323 #pragma omp teams in foo()
6324 #pragma omp distribute parallel for in foo()
6326 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
6330 #pragma omp target in foo()
6331 #pragma omp teams in foo()
6332 #pragma omp distribute parallel for in foo()
6334 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
6338 #pragma omp target in foo()
6339 #pragma omp teams in foo()
6340 #pragma omp distribute parallel for in foo()
6342 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
6346 #pragma omp target in foo()
6347 #pragma omp teams in foo()
6348 #pragma omp distribute parallel for in foo()
6350 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
6356 #pragma omp target in foo()
6357 #pragma omp teams in foo()
6358 #pragma omp distribute parallel for simd in foo()
6360 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
6364 #pragma omp target in foo()
6365 #pragma omp teams in foo()
6366 #pragma omp distribute parallel for simd in foo()
6368 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
6372 #pragma omp target in foo()
6373 #pragma omp teams in foo()
6374 #pragma omp distribute parallel for simd in foo()
6376 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6380 #pragma omp target in foo()
6381 #pragma omp teams in foo()
6382 #pragma omp distribute parallel for simd in foo()
6384 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
6388 #pragma omp target in foo()
6389 #pragma omp teams in foo()
6390 #pragma omp distribute parallel for simd in foo()
6392 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6396 #pragma omp target in foo()
6397 #pragma omp teams in foo()
6398 #pragma omp distribute parallel for simd in foo()
6400 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6404 #pragma omp target in foo()
6405 #pragma omp teams in foo()
6406 #pragma omp distribute parallel for simd in foo()
6408 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6413 #pragma omp target in foo()
6414 #pragma omp teams in foo()
6415 #pragma omp distribute parallel for simd in foo()
6417 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6422 #pragma omp target in foo()
6423 #pragma omp teams in foo()
6424 #pragma omp distribute parallel for simd in foo()
6426 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6431 #pragma omp target in foo()
6432 #pragma omp teams in foo()
6433 #pragma omp distribute parallel for simd in foo()
6435 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6440 #pragma omp target in foo()
6441 #pragma omp teams in foo()
6442 #pragma omp distribute parallel for simd in foo()
6444 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6449 #pragma omp target in foo()
6450 #pragma omp teams in foo()
6451 #pragma omp distribute parallel for simd in foo()
6453 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6455 #pragma omp single in foo()
6461 #pragma omp target in foo()
6462 #pragma omp teams in foo()
6463 #pragma omp distribute parallel for simd in foo()
6465 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
6469 #pragma omp target in foo()
6470 #pragma omp teams in foo()
6471 #pragma omp distribute parallel for simd in foo()
6473 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
6477 #pragma omp target in foo()
6478 #pragma omp teams in foo()
6479 #pragma omp distribute parallel for simd in foo()
6481 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
6486 #pragma omp target in foo()
6487 #pragma omp teams in foo()
6488 #pragma omp distribute parallel for simd in foo()
6490 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6495 #pragma omp target in foo()
6496 #pragma omp teams in foo()
6497 #pragma omp distribute parallel for simd in foo()
6499 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6502 #pragma omp target in foo()
6503 #pragma omp teams in foo()
6504 #pragma omp distribute parallel for simd in foo()
6506 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6509 #pragma omp target in foo()
6510 #pragma omp teams in foo()
6511 #pragma omp distribute parallel for simd in foo()
6513 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
6516 #pragma omp target in foo()
6517 #pragma omp teams in foo()
6518 #pragma omp distribute parallel for simd in foo()
6520 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6523 #pragma omp target in foo()
6524 #pragma omp teams in foo()
6525 #pragma omp distribute parallel for simd in foo()
6527 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6530 #pragma omp target in foo()
6531 #pragma omp teams in foo()
6532 #pragma omp distribute parallel for simd in foo()
6534 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6537 #pragma omp target in foo()
6538 #pragma omp teams in foo()
6539 #pragma omp distribute parallel for simd in foo()
6541 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6544 #pragma omp target in foo()
6545 #pragma omp teams in foo()
6546 #pragma omp distribute parallel for simd in foo()
6548 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6551 #pragma omp target in foo()
6552 #pragma omp teams in foo()
6553 #pragma omp distribute parallel for simd in foo()
6555 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
6558 #pragma omp target in foo()
6559 #pragma omp teams in foo()
6560 #pragma omp distribute parallel for simd in foo()
6562 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
6566 #pragma omp target in foo()
6567 #pragma omp teams in foo()
6568 #pragma omp distribute parallel for simd in foo()
6570 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
6573 #pragma omp target in foo()
6574 #pragma omp teams in foo()
6575 #pragma omp distribute parallel for simd in foo()
6577 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
6580 #pragma omp target in foo()
6581 #pragma omp teams in foo()
6582 #pragma omp distribute parallel for simd in foo()
6584 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6587 #pragma omp target in foo()
6588 #pragma omp teams in foo()
6589 #pragma omp distribute parallel for simd in foo()
6591 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
6594 #pragma omp target in foo()
6595 #pragma omp teams in foo()
6596 #pragma omp distribute parallel for simd in foo()
6598 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
6602 #pragma omp target in foo()
6603 #pragma omp teams in foo()
6604 #pragma omp distribute parallel for simd in foo()
6606 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
6610 #pragma omp target in foo()
6611 #pragma omp teams in foo()
6612 #pragma omp distribute parallel for simd in foo()
6614 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
6618 #pragma omp target in foo()
6619 #pragma omp teams in foo()
6620 #pragma omp distribute parallel for simd in foo()
6622 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
6626 #pragma omp target in foo()
6627 #pragma omp teams in foo()
6628 #pragma omp distribute parallel for simd in foo()
6630 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
6634 #pragma omp target in foo()
6635 #pragma omp teams in foo()
6636 #pragma omp distribute parallel for simd in foo()
6638 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
6642 #pragma omp target in foo()
6643 #pragma omp teams in foo()
6644 #pragma omp distribute parallel for simd in foo()
6646 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
6649 #pragma omp target in foo()
6650 #pragma omp teams in foo()
6651 #pragma omp distribute parallel for simd in foo()
6653 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
6657 #pragma omp target in foo()
6658 #pragma omp teams in foo()
6659 #pragma omp distribute parallel for simd in foo()
6661 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
6665 #pragma omp target in foo()
6666 #pragma omp teams in foo()
6667 #pragma omp distribute parallel for simd in foo()
6669 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
6673 #pragma omp target in foo()
6674 #pragma omp teams in foo()
6675 #pragma omp distribute parallel for simd in foo()
6677 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
6683 #pragma omp target simd in foo()
6685 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
6689 #pragma omp target simd in foo()
6691 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
6695 #pragma omp target simd in foo()
6697 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6701 #pragma omp target simd in foo()
6703 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
6707 #pragma omp target simd in foo()
6709 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6713 #pragma omp target simd in foo()
6715 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6719 #pragma omp target simd in foo()
6721 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6726 #pragma omp target simd in foo()
6728 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6733 #pragma omp target simd in foo()
6735 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6740 #pragma omp target simd in foo()
6742 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6747 #pragma omp target simd in foo()
6749 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6754 #pragma omp target simd in foo()
6756 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6758 #pragma omp single in foo()
6764 #pragma omp target simd in foo()
6766 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
6770 #pragma omp target simd in foo()
6772 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
6776 #pragma omp target simd in foo()
6778 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
6783 #pragma omp target simd in foo()
6785 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6790 #pragma omp target simd in foo()
6792 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6795 #pragma omp target simd in foo()
6797 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6800 #pragma omp target simd in foo()
6802 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
6805 #pragma omp target simd in foo()
6807 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6810 #pragma omp target simd in foo()
6812 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6815 #pragma omp target simd in foo()
6817 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6820 #pragma omp target simd in foo()
6822 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6825 #pragma omp target simd in foo()
6827 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6830 #pragma omp target simd in foo()
6832 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
6835 #pragma omp target simd in foo()
6837 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
6841 #pragma omp target simd in foo()
6843 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
6846 #pragma omp target simd in foo()
6848 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
6851 #pragma omp target simd in foo()
6853 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6856 #pragma omp target simd in foo()
6858 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
6861 #pragma omp target simd in foo()
6863 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
6867 #pragma omp target simd in foo()
6869 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
6873 #pragma omp target simd in foo()
6875 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
6879 #pragma omp target simd in foo()
6881 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
6885 #pragma omp target simd in foo()
6887 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
6891 #pragma omp target simd in foo()
6893 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
6897 #pragma omp target simd in foo()
6899 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
6903 #pragma omp target simd in foo()
6905 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
6911 #pragma omp teams distribute // omp45-error {{orphaned 'omp teams distribute' directives are prohib… in foo()
6914 #pragma omp target in foo()
6915 #pragma omp teams distribute in foo()
6917 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
6921 #pragma omp target in foo()
6922 #pragma omp teams distribute in foo()
6924 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute… in foo()
6928 #pragma omp target in foo()
6929 #pragma omp teams distribute in foo()
6931 #pragma omp for // OK in foo()
6935 #pragma omp target in foo()
6936 #pragma omp teams distribute in foo()
6938 #pragma omp simd // OK in foo()
6942 #pragma omp target in foo()
6943 #pragma omp teams distribute in foo()
6945 #pragma omp for simd // OK in foo()
6949 #pragma omp target in foo()
6950 #pragma omp teams distribute in foo()
6952 #pragma omp parallel // OK in foo()
6956 #pragma omp target in foo()
6957 #pragma omp teams distribute in foo()
6959 #pragma omp sections // OK in foo()
6964 #pragma omp target in foo()
6965 #pragma omp teams distribute in foo()
6967 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
6972 #pragma omp target in foo()
6973 #pragma omp teams distribute in foo()
6975 #pragma omp single // OK in foo()
6980 #pragma omp target in foo()
6981 #pragma omp teams distribute in foo()
6983 #pragma omp master // OK in foo()
6988 #pragma omp target in foo()
6989 #pragma omp teams distribute in foo()
6991 #pragma omp critical // OK in foo()
6996 #pragma omp target in foo()
6997 #pragma omp teams distribute in foo()
6999 #pragma omp parallel // OK in foo()
7001 #pragma omp single in foo()
7007 #pragma omp target in foo()
7008 #pragma omp teams distribute in foo()
7010 #pragma omp parallel for // OK in foo()
7014 #pragma omp target in foo()
7015 #pragma omp teams distribute in foo()
7017 #pragma omp parallel for simd // OK in foo()
7021 #pragma omp target in foo()
7022 #pragma omp teams distribute in foo()
7024 #pragma omp parallel sections // OK in foo()
7029 #pragma omp target in foo()
7030 #pragma omp teams distribute in foo()
7032 #pragma omp task // OK in foo()
7037 #pragma omp target in foo()
7038 #pragma omp teams distribute in foo()
7040 #pragma omp taskyield // OK in foo()
7043 #pragma omp target in foo()
7044 #pragma omp teams distribute in foo()
7046 #pragma omp barrier // OK in foo()
7049 #pragma omp target in foo()
7050 #pragma omp teams distribute in foo()
7052 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute' regi… in foo()
7055 #pragma omp target in foo()
7056 #pragma omp teams distribute in foo()
7058 #pragma omp taskwait // OK in foo()
7061 #pragma omp target in foo()
7062 #pragma omp teams distribute in foo()
7064 #pragma omp flush // OK in foo()
7067 #pragma omp target in foo()
7068 #pragma omp teams distribute in foo()
7070 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute' r… in foo()
7073 #pragma omp target in foo()
7074 #pragma omp teams distribute in foo()
7076 #pragma omp atomic // OK in foo()
7079 #pragma omp target in foo()
7080 #pragma omp teams distribute in foo()
7082 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
7085 #pragma omp target in foo()
7086 #pragma omp teams distribute in foo()
7088 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
7091 #pragma omp target in foo()
7092 #pragma omp teams distribute in foo()
7094 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
7098 #pragma omp target in foo()
7099 #pragma omp teams distribute in foo()
7101 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
7104 #pragma omp target in foo()
7105 #pragma omp teams distribute in foo()
7107 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
7110 #pragma omp target in foo()
7111 #pragma omp teams distribute in foo()
7113 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute' reg… in foo()
7116 #pragma omp target in foo()
7117 #pragma omp teams distribute in foo()
7119 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
7122 #pragma omp target in foo()
7123 #pragma omp teams distribute in foo()
7125 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distr… in foo()
7129 #pragma omp target in foo()
7130 #pragma omp teams distribute in foo()
7132 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
7136 #pragma omp target in foo()
7137 #pragma omp teams distribute in foo()
7139 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams dist… in foo()
7143 #pragma omp target in foo()
7144 #pragma omp teams distribute in foo()
7146 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
7150 #pragma omp target in foo()
7151 #pragma omp teams distribute in foo()
7153 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
7157 #pragma omp target in foo()
7158 #pragma omp teams distribute in foo()
7160 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
7164 #pragma omp target in foo()
7165 #pragma omp teams distribute in foo()
7167 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
7171 #pragma omp target in foo()
7172 #pragma omp teams distribute in foo()
7174 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
7180 #pragma omp teams distribute // omp45-error {{orphaned 'omp teams distribute' directives are prohib… in foo()
7183 #pragma omp target in foo()
7184 #pragma omp teams distribute in foo()
7186 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
7190 #pragma omp target in foo()
7191 #pragma omp teams distribute in foo()
7193 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute… in foo()
7197 #pragma omp target in foo()
7198 #pragma omp teams distribute in foo()
7200 #pragma omp for // OK in foo()
7204 #pragma omp target in foo()
7205 #pragma omp teams distribute in foo()
7207 #pragma omp simd // OK in foo()
7211 #pragma omp target in foo()
7212 #pragma omp teams distribute in foo()
7214 #pragma omp for simd // OK in foo()
7218 #pragma omp target in foo()
7219 #pragma omp teams distribute in foo()
7221 #pragma omp parallel // OK in foo()
7225 #pragma omp target in foo()
7226 #pragma omp teams distribute in foo()
7228 #pragma omp sections // OK in foo()
7233 #pragma omp target in foo()
7234 #pragma omp teams distribute in foo()
7236 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
7241 #pragma omp target in foo()
7242 #pragma omp teams distribute in foo()
7244 #pragma omp single // OK in foo()
7249 #pragma omp target in foo()
7250 #pragma omp teams distribute in foo()
7252 #pragma omp master // OK in foo()
7257 #pragma omp target in foo()
7258 #pragma omp teams distribute in foo()
7260 #pragma omp critical // OK in foo()
7265 #pragma omp target in foo()
7266 #pragma omp teams distribute in foo()
7268 #pragma omp parallel // OK in foo()
7270 #pragma omp single in foo()
7276 #pragma omp target in foo()
7277 #pragma omp teams distribute in foo()
7279 #pragma omp parallel for // OK in foo()
7283 #pragma omp target in foo()
7284 #pragma omp teams distribute in foo()
7286 #pragma omp parallel for simd // OK in foo()
7290 #pragma omp target in foo()
7291 #pragma omp teams distribute in foo()
7293 #pragma omp parallel sections // OK in foo()
7298 #pragma omp target in foo()
7299 #pragma omp teams distribute in foo()
7301 #pragma omp task // OK in foo()
7306 #pragma omp target in foo()
7307 #pragma omp teams distribute in foo()
7309 #pragma omp taskyield // OK in foo()
7312 #pragma omp target in foo()
7313 #pragma omp teams distribute in foo()
7315 #pragma omp barrier // OK in foo()
7318 #pragma omp target in foo()
7319 #pragma omp teams distribute in foo()
7321 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute' regi… in foo()
7324 #pragma omp target in foo()
7325 #pragma omp teams distribute in foo()
7327 #pragma omp taskwait // OK in foo()
7330 #pragma omp target in foo()
7331 #pragma omp teams distribute in foo()
7333 #pragma omp flush // OK in foo()
7336 #pragma omp target in foo()
7337 #pragma omp teams distribute in foo()
7339 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute' r… in foo()
7342 #pragma omp target in foo()
7343 #pragma omp teams distribute in foo()
7345 #pragma omp atomic // OK in foo()
7348 #pragma omp target in foo()
7349 #pragma omp teams distribute in foo()
7351 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
7354 #pragma omp target in foo()
7355 #pragma omp teams distribute in foo()
7357 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
7360 #pragma omp target in foo()
7361 #pragma omp teams distribute in foo()
7363 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
7367 #pragma omp target in foo()
7368 #pragma omp teams distribute in foo()
7370 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
7373 #pragma omp target in foo()
7374 #pragma omp teams distribute in foo()
7376 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
7379 #pragma omp target in foo()
7380 #pragma omp teams distribute in foo()
7382 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute' reg… in foo()
7385 #pragma omp target in foo()
7386 #pragma omp teams distribute in foo()
7388 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
7391 #pragma omp target in foo()
7392 #pragma omp teams distribute in foo()
7394 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distr… in foo()
7398 #pragma omp target in foo()
7399 #pragma omp teams distribute in foo()
7401 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
7405 #pragma omp target in foo()
7406 #pragma omp teams distribute in foo()
7408 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams dist… in foo()
7412 #pragma omp target in foo()
7413 #pragma omp teams distribute in foo()
7415 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
7419 #pragma omp target in foo()
7420 #pragma omp teams distribute in foo()
7422 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
7426 #pragma omp target in foo()
7427 #pragma omp teams distribute in foo()
7429 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
7433 #pragma omp target in foo()
7434 #pragma omp teams distribute in foo()
7436 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
7439 #pragma omp target in foo()
7440 #pragma omp teams distribute in foo()
7442 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
7446 #pragma omp target in foo()
7447 #pragma omp teams distribute in foo()
7449 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
7453 #pragma omp target in foo()
7454 #pragma omp teams distribute in foo()
7456 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
7460 #pragma omp target in foo()
7461 #pragma omp teams distribute in foo()
7463 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
7469 #pragma omp teams distribute simd // omp45-error {{orphaned 'omp teams distribute simd' directives … in foo()
7472 #pragma omp target in foo()
7473 #pragma omp teams distribute simd in foo()
7475 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
7479 #pragma omp target in foo()
7480 #pragma omp teams distribute simd in foo()
7482 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
7486 #pragma omp target in foo()
7487 #pragma omp teams distribute simd in foo()
7489 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7493 #pragma omp target in foo()
7494 #pragma omp teams distribute simd in foo()
7496 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
7500 #pragma omp target in foo()
7501 #pragma omp teams distribute simd in foo()
7503 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7507 #pragma omp target in foo()
7508 #pragma omp teams distribute simd in foo()
7510 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7514 #pragma omp target in foo()
7515 #pragma omp teams distribute simd in foo()
7517 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7522 #pragma omp target in foo()
7523 #pragma omp teams distribute simd in foo()
7525 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7530 #pragma omp target in foo()
7531 #pragma omp teams distribute simd in foo()
7533 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7538 #pragma omp target in foo()
7539 #pragma omp teams distribute simd in foo()
7541 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7546 #pragma omp target in foo()
7547 #pragma omp teams distribute simd in foo()
7549 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7554 #pragma omp target in foo()
7555 #pragma omp teams distribute simd in foo()
7557 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7559 #pragma omp single in foo()
7565 #pragma omp target in foo()
7566 #pragma omp teams distribute simd in foo()
7568 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
7572 #pragma omp target in foo()
7573 #pragma omp teams distribute simd in foo()
7575 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
7579 #pragma omp target in foo()
7580 #pragma omp teams distribute simd in foo()
7582 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
7587 #pragma omp target in foo()
7588 #pragma omp teams distribute simd in foo()
7590 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7595 #pragma omp target in foo()
7596 #pragma omp teams distribute simd in foo()
7598 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7601 #pragma omp target in foo()
7602 #pragma omp teams distribute simd in foo()
7604 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7607 #pragma omp target in foo()
7608 #pragma omp teams distribute simd in foo()
7610 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
7613 #pragma omp target in foo()
7614 #pragma omp teams distribute simd in foo()
7616 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7619 #pragma omp target in foo()
7620 #pragma omp teams distribute simd in foo()
7622 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7625 #pragma omp target in foo()
7626 #pragma omp teams distribute simd in foo()
7628 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7631 #pragma omp target in foo()
7632 #pragma omp teams distribute simd in foo()
7634 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7637 #pragma omp target in foo()
7638 #pragma omp teams distribute simd in foo()
7640 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7643 #pragma omp target in foo()
7644 #pragma omp teams distribute simd in foo()
7646 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
7649 #pragma omp target in foo()
7650 #pragma omp teams distribute simd in foo()
7652 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
7656 #pragma omp target in foo()
7657 #pragma omp teams distribute simd in foo()
7659 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
7662 #pragma omp target in foo()
7663 #pragma omp teams distribute simd in foo()
7665 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
7668 #pragma omp target in foo()
7669 #pragma omp teams distribute simd in foo()
7671 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7674 #pragma omp target in foo()
7675 #pragma omp teams distribute simd in foo()
7677 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
7680 #pragma omp target in foo()
7681 #pragma omp teams distribute simd in foo()
7683 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
7687 #pragma omp target in foo()
7688 #pragma omp teams distribute simd in foo()
7690 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
7694 #pragma omp target in foo()
7695 #pragma omp teams distribute simd in foo()
7697 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
7701 #pragma omp target in foo()
7702 #pragma omp teams distribute simd in foo()
7704 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
7708 #pragma omp target in foo()
7709 #pragma omp teams distribute simd in foo()
7711 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
7715 #pragma omp target in foo()
7716 #pragma omp teams distribute simd in foo()
7718 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
7722 #pragma omp target in foo()
7723 #pragma omp teams distribute simd in foo()
7725 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
7728 #pragma omp target in foo()
7729 #pragma omp teams distribute simd in foo()
7731 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
7735 #pragma omp target in foo()
7736 #pragma omp teams distribute simd in foo()
7738 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
7742 #pragma omp target in foo()
7743 #pragma omp teams distribute simd in foo()
7745 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
7749 #pragma omp target in foo()
7750 #pragma omp teams distribute simd in foo()
7752 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
7758 #pragma omp teams distribute parallel for simd // omp45-error {{orphaned 'omp teams distribute para… in foo()
7761 #pragma omp target in foo()
7762 #pragma omp teams distribute parallel for simd in foo()
7764 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
7768 #pragma omp target in foo()
7769 #pragma omp teams distribute parallel for simd in foo()
7771 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
7775 #pragma omp target in foo()
7776 #pragma omp teams distribute parallel for simd in foo()
7778 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7782 #pragma omp target in foo()
7783 #pragma omp teams distribute parallel for simd in foo()
7785 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
7789 #pragma omp target in foo()
7790 #pragma omp teams distribute parallel for simd in foo()
7792 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7796 #pragma omp target in foo()
7797 #pragma omp teams distribute parallel for simd in foo()
7799 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7803 #pragma omp target in foo()
7804 #pragma omp teams distribute parallel for simd in foo()
7806 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7811 #pragma omp target in foo()
7812 #pragma omp teams distribute parallel for simd in foo()
7814 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7819 #pragma omp target in foo()
7820 #pragma omp teams distribute parallel for simd in foo()
7822 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7827 #pragma omp target in foo()
7828 #pragma omp teams distribute parallel for simd in foo()
7830 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7835 #pragma omp target in foo()
7836 #pragma omp teams distribute parallel for simd in foo()
7838 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7843 #pragma omp target in foo()
7844 #pragma omp teams distribute parallel for simd in foo()
7846 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7848 #pragma omp single in foo()
7854 #pragma omp target in foo()
7855 #pragma omp teams distribute parallel for simd in foo()
7857 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
7861 #pragma omp target in foo()
7862 #pragma omp teams distribute parallel for simd in foo()
7864 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
7868 #pragma omp target in foo()
7869 #pragma omp teams distribute parallel for simd in foo()
7871 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
7876 #pragma omp target in foo()
7877 #pragma omp teams distribute parallel for simd in foo()
7879 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7884 #pragma omp target in foo()
7885 #pragma omp teams distribute parallel for simd in foo()
7887 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7890 #pragma omp target in foo()
7891 #pragma omp teams distribute parallel for simd in foo()
7893 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7896 #pragma omp target in foo()
7897 #pragma omp teams distribute parallel for simd in foo()
7899 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
7902 #pragma omp target in foo()
7903 #pragma omp teams distribute parallel for simd in foo()
7905 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7908 #pragma omp target in foo()
7909 #pragma omp teams distribute parallel for simd in foo()
7911 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7914 #pragma omp target in foo()
7915 #pragma omp teams distribute parallel for simd in foo()
7917 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7920 #pragma omp target in foo()
7921 #pragma omp teams distribute parallel for simd in foo()
7923 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7926 #pragma omp target in foo()
7927 #pragma omp teams distribute parallel for simd in foo()
7929 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7932 #pragma omp target in foo()
7933 #pragma omp teams distribute parallel for simd in foo()
7935 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
7938 #pragma omp target in foo()
7939 #pragma omp teams distribute parallel for simd in foo()
7941 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
7945 #pragma omp target in foo()
7946 #pragma omp teams distribute parallel for simd in foo()
7948 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
7951 #pragma omp target in foo()
7952 #pragma omp teams distribute parallel for simd in foo()
7954 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
7957 #pragma omp target in foo()
7958 #pragma omp teams distribute parallel for simd in foo()
7960 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7963 #pragma omp target in foo()
7964 #pragma omp teams distribute parallel for simd in foo()
7966 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
7969 #pragma omp target in foo()
7970 #pragma omp teams distribute parallel for simd in foo()
7972 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
7976 #pragma omp target in foo()
7977 #pragma omp teams distribute parallel for simd in foo()
7979 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
7983 #pragma omp target in foo()
7984 #pragma omp teams distribute parallel for simd in foo()
7986 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
7990 #pragma omp target in foo()
7991 #pragma omp teams distribute parallel for simd in foo()
7993 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
7997 #pragma omp target in foo()
7998 #pragma omp teams distribute parallel for simd in foo()
8000 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
8004 #pragma omp target in foo()
8005 #pragma omp teams distribute parallel for simd in foo()
8007 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
8011 #pragma omp target in foo()
8012 #pragma omp teams distribute parallel for simd in foo()
8014 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
8017 #pragma omp target in foo()
8018 #pragma omp teams distribute parallel for simd in foo()
8020 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
8024 #pragma omp target in foo()
8025 #pragma omp teams distribute parallel for simd in foo()
8027 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
8031 #pragma omp target in foo()
8032 #pragma omp teams distribute parallel for simd in foo()
8034 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
8038 #pragma omp target in foo()
8039 #pragma omp teams distribute parallel for simd in foo()
8041 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
8047 #pragma omp teams distribute parallel for // omp45-error {{orphaned 'omp teams distribute parallel … in foo()
8050 #pragma omp target in foo()
8051 #pragma omp teams distribute parallel for in foo()
8053 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
8057 #pragma omp target in foo()
8058 #pragma omp teams distribute parallel for in foo()
8060 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute… in foo()
8064 #pragma omp target in foo()
8065 #pragma omp teams distribute parallel for in foo()
8067 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams distribute parall… in foo()
8071 #pragma omp target in foo()
8072 #pragma omp teams distribute parallel for in foo()
8074 #pragma omp simd // OK in foo()
8078 #pragma omp target in foo()
8079 #pragma omp teams distribute parallel for in foo()
8081 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams distribute p… in foo()
8085 #pragma omp target in foo()
8086 #pragma omp teams distribute parallel for in foo()
8088 #pragma omp parallel // OK in foo()
8092 #pragma omp target in foo()
8093 #pragma omp teams distribute parallel for in foo()
8095 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams distribute p… in foo()
8100 #pragma omp target in foo()
8101 #pragma omp teams distribute parallel for in foo()
8103 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
8108 #pragma omp target in foo()
8109 #pragma omp teams distribute parallel for in foo()
8111 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams distribute par… in foo()
8116 #pragma omp target in foo()
8117 #pragma omp teams distribute parallel for in foo()
8119 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams distribute par… in foo()
8124 #pragma omp target in foo()
8125 #pragma omp teams distribute parallel for in foo()
8127 #pragma omp critical // OK in foo()
8132 #pragma omp target in foo()
8133 #pragma omp teams distribute parallel for in foo()
8135 #pragma omp parallel // OK in foo()
8137 #pragma omp single in foo()
8143 #pragma omp target in foo()
8144 #pragma omp teams distribute parallel for in foo()
8146 #pragma omp parallel for // OK in foo()
8150 #pragma omp target in foo()
8151 #pragma omp teams distribute parallel for in foo()
8153 #pragma omp parallel for simd // OK in foo()
8157 #pragma omp target in foo()
8158 #pragma omp teams distribute parallel for in foo()
8160 #pragma omp parallel sections // OK in foo()
8165 #pragma omp target in foo()
8166 #pragma omp teams distribute parallel for in foo()
8168 #pragma omp task // OK in foo()
8173 #pragma omp target in foo()
8174 #pragma omp teams distribute parallel for in foo()
8176 #pragma omp taskyield // OK in foo()
8179 #pragma omp target in foo()
8180 #pragma omp teams distribute parallel for in foo()
8182 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams distribute pa… in foo()
8185 #pragma omp target in foo()
8186 #pragma omp teams distribute parallel for in foo()
8188 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute paral… in foo()
8191 #pragma omp target in foo()
8192 #pragma omp teams distribute parallel for in foo()
8194 #pragma omp taskwait // OK in foo()
8197 #pragma omp target in foo()
8198 #pragma omp teams distribute parallel for in foo()
8200 #pragma omp flush // OK in foo()
8203 #pragma omp target in foo()
8204 #pragma omp teams distribute parallel for in foo()
8206 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute pa… in foo()
8209 #pragma omp target in foo()
8210 #pragma omp teams distribute parallel for in foo()
8212 #pragma omp atomic // OK in foo()
8215 #pragma omp target in foo()
8216 #pragma omp teams distribute parallel for in foo()
8218 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
8221 #pragma omp target in foo()
8222 #pragma omp teams distribute parallel for in foo()
8224 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
8227 #pragma omp target in foo()
8228 #pragma omp teams distribute parallel for in foo()
8230 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
8234 #pragma omp target in foo()
8235 #pragma omp teams distribute parallel for in foo()
8237 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
8240 #pragma omp target in foo()
8241 #pragma omp teams distribute parallel for in foo()
8243 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
8246 #pragma omp target in foo()
8247 #pragma omp teams distribute parallel for in foo()
8249 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute para… in foo()
8252 #pragma omp target in foo()
8253 #pragma omp teams distribute parallel for in foo()
8255 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
8258 #pragma omp target in foo()
8259 #pragma omp teams distribute parallel for in foo()
8261 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distr… in foo()
8265 #pragma omp target in foo()
8266 #pragma omp teams distribute parallel for in foo()
8268 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
8272 #pragma omp target in foo()
8273 #pragma omp teams distribute parallel for in foo()
8275 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams dist… in foo()
8279 #pragma omp target in foo()
8280 #pragma omp teams distribute parallel for in foo()
8282 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
8286 #pragma omp target in foo()
8287 #pragma omp teams distribute parallel for in foo()
8289 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
8293 #pragma omp target in foo()
8294 #pragma omp teams distribute parallel for in foo()
8296 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
8300 #pragma omp target in foo()
8301 #pragma omp teams distribute parallel for in foo()
8303 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
8306 #pragma omp target in foo()
8307 #pragma omp teams distribute parallel for in foo()
8309 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
8313 #pragma omp target in foo()
8314 #pragma omp teams distribute parallel for in foo()
8316 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
8320 #pragma omp target in foo()
8321 #pragma omp teams distribute parallel for in foo()
8323 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
8327 #pragma omp target in foo()
8328 #pragma omp teams distribute parallel for in foo()
8330 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
8336 #pragma omp target teams in foo()
8337 #pragma omp parallel in foo()
8339 #pragma omp target teams in foo()
8340 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams' region; p… in foo()
8343 #pragma omp target teams in foo()
8344 #pragma omp simd // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
8347 #pragma omp target teams in foo()
8348 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
8351 #pragma omp target teams in foo()
8352 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
8356 #pragma omp target teams in foo()
8357 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
8361 #pragma omp target teams in foo()
8362 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams' region… in foo()
8365 #pragma omp target teams in foo()
8366 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams' region… in foo()
8370 #pragma omp target teams in foo()
8371 #pragma omp critical // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
8375 #pragma omp target teams in foo()
8376 #pragma omp parallel for in foo()
8379 #pragma omp target teams in foo()
8380 #pragma omp parallel for simd in foo()
8383 #pragma omp target teams in foo()
8384 #pragma omp parallel sections in foo()
8388 #pragma omp target teams in foo()
8389 #pragma omp task // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
8393 #pragma omp target teams in foo()
8395 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'target teams' reg… in foo()
8398 #pragma omp target teams in foo()
8400 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams' regio… in foo()
8403 #pragma omp target teams in foo()
8405 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
8408 #pragma omp target teams in foo()
8410 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
8413 #pragma omp target teams in foo()
8415 #pragma omp flush // expected-error {{region cannot be closely nested inside 'target teams' region;… in foo()
8418 #pragma omp target teams in foo()
8420 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams' regio… in foo()
8423 #pragma omp target teams in foo()
8425 #pragma omp atomic // expected-error {{region cannot be closely nested inside 'target teams' region… in foo()
8428 #pragma omp target teams in foo()
8430 #pragma omp target // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
8433 #pragma omp target teams in foo()
8435 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams' regio… in foo()
8438 #pragma omp target teams in foo()
8439 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams' r… in foo()
8442 #pragma omp target teams in foo()
8444 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
8446 #pragma omp target teams in foo()
8448 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
8450 #pragma omp target teams in foo()
8452 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams' region;… in foo()
8455 #pragma omp target teams in foo()
8457 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
8461 #pragma omp target teams in foo()
8462 #pragma omp distribute in foo()
8465 #pragma omp target teams in foo()
8467 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams' r… in foo()
8470 #pragma omp target teams in foo()
8471 #pragma omp distribute parallel for in foo()
8474 #pragma omp target teams in foo()
8476 #pragma omp distribute parallel for in foo()
8479 #pragma omp distribute parallel for in foo()
8483 #pragma omp target teams in foo()
8485 #pragma omp distribute parallel for simd in foo()
8488 #pragma omp distribute parallel for simd in foo()
8492 #pragma omp target teams in foo()
8494 #pragma omp distribute simd in foo()
8497 #pragma omp distribute simd in foo()
8501 #pragma omp target teams in foo()
8503 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
8507 #pragma omp target teams in foo()
8509 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
8513 #pragma omp target teams in foo()
8515 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
8519 #pragma omp target teams in foo()
8521 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
8525 #pragma omp target teams in foo()
8527 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
8531 #pragma omp target teams in foo()
8533 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
8536 #pragma omp target teams in foo()
8538 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
8542 #pragma omp target teams in foo()
8544 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
8548 #pragma omp target teams in foo()
8550 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
8554 #pragma omp target teams in foo()
8556 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
8562 #pragma omp target teams distribute // OK in foo()
8565 #pragma omp target teams distribute in foo()
8567 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
8571 #pragma omp target teams distribute in foo()
8573 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams dis… in foo()
8577 #pragma omp target teams distribute in foo()
8579 #pragma omp for // OK in foo()
8583 #pragma omp target teams distribute in foo()
8585 #pragma omp simd // OK in foo()
8589 #pragma omp target teams distribute in foo()
8591 #pragma omp for simd // OK in foo()
8595 #pragma omp target teams distribute in foo()
8597 #pragma omp parallel // OK in foo()
8601 #pragma omp target teams distribute in foo()
8603 #pragma omp sections // OK in foo()
8608 #pragma omp target teams distribute in foo()
8610 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
8615 #pragma omp target teams distribute in foo()
8617 #pragma omp single // OK in foo()
8622 #pragma omp target teams distribute in foo()
8624 #pragma omp master // OK in foo()
8629 #pragma omp target teams distribute in foo()
8631 #pragma omp critical // OK in foo()
8636 #pragma omp target teams distribute in foo()
8638 #pragma omp parallel // OK in foo()
8640 #pragma omp single in foo()
8646 #pragma omp target teams distribute in foo()
8648 #pragma omp parallel for // OK in foo()
8652 #pragma omp target teams distribute in foo()
8654 #pragma omp parallel for simd // OK in foo()
8658 #pragma omp target teams distribute in foo()
8660 #pragma omp parallel sections // OK in foo()
8665 #pragma omp target teams distribute in foo()
8667 #pragma omp task // OK in foo()
8672 #pragma omp target teams distribute in foo()
8674 #pragma omp taskyield // OK in foo()
8677 #pragma omp target teams distribute in foo()
8679 #pragma omp barrier // OK in foo()
8682 #pragma omp target teams distribute in foo()
8684 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribut… in foo()
8687 #pragma omp target teams distribute in foo()
8689 #pragma omp taskwait // OK in foo()
8692 #pragma omp target teams distribute in foo()
8694 #pragma omp flush // OK in foo()
8697 #pragma omp target teams distribute in foo()
8699 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
8702 #pragma omp target teams distribute in foo()
8704 #pragma omp atomic // OK in foo()
8707 #pragma omp target teams distribute in foo()
8709 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute' reg… in foo()
8712 #pragma omp target teams distribute in foo()
8714 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distr… in foo()
8717 #pragma omp target teams distribute in foo()
8719 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams di… in foo()
8723 #pragma omp target teams distribute in foo()
8725 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
8728 #pragma omp target teams distribute in foo()
8730 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
8733 #pragma omp target teams distribute in foo()
8735 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribu… in foo()
8738 #pragma omp target teams distribute in foo()
8740 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams di… in foo()
8743 #pragma omp target teams distribute in foo()
8745 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target team… in foo()
8749 #pragma omp target teams distribute in foo()
8751 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute… in foo()
8755 #pragma omp target teams distribute in foo()
8757 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
8761 #pragma omp target teams distribute in foo()
8763 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
8767 #pragma omp target teams distribute in foo()
8769 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
8773 #pragma omp target teams distribute in foo()
8775 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
8779 #pragma omp target teams distribute in foo()
8781 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribut… in foo()
8784 #pragma omp target teams distribute in foo()
8786 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
8790 #pragma omp target teams distribute in foo()
8792 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
8796 #pragma omp target teams distribute in foo()
8798 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
8802 #pragma omp target teams distribute in foo()
8804 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
8810 #pragma omp target teams distribute parallel for // OK in foo()
8813 #pragma omp target teams distribute parallel for in foo()
8815 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
8819 #pragma omp target teams distribute parallel for in foo()
8821 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams dis… in foo()
8825 #pragma omp target teams distribute parallel for in foo()
8827 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams distribute… in foo()
8831 #pragma omp target teams distribute parallel for in foo()
8833 #pragma omp simd // OK in foo()
8837 #pragma omp target teams distribute parallel for in foo()
8839 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams distr… in foo()
8843 #pragma omp target teams distribute parallel for in foo()
8845 #pragma omp parallel // OK in foo()
8849 #pragma omp target teams distribute parallel for in foo()
8851 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams distr… in foo()
8856 #pragma omp target teams distribute parallel for in foo()
8858 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
8863 #pragma omp target teams distribute parallel for in foo()
8865 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams distrib… in foo()
8870 #pragma omp target teams distribute parallel for in foo()
8872 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams distrib… in foo()
8877 #pragma omp target teams distribute parallel for in foo()
8879 #pragma omp critical // OK in foo()
8884 #pragma omp target teams distribute parallel for in foo()
8886 #pragma omp parallel // OK in foo()
8888 #pragma omp single in foo()
8894 #pragma omp target teams distribute parallel for in foo()
8896 #pragma omp parallel for // OK in foo()
8900 #pragma omp target teams distribute parallel for in foo()
8902 #pragma omp parallel for simd // OK in foo()
8906 #pragma omp target teams distribute parallel for in foo()
8908 #pragma omp parallel sections // OK in foo()
8913 #pragma omp target teams distribute parallel for in foo()
8915 #pragma omp task // OK in foo()
8920 #pragma omp target teams distribute parallel for in foo()
8922 #pragma omp taskyield // OK in foo()
8925 #pragma omp target teams distribute parallel for in foo()
8927 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
8930 #pragma omp target teams distribute parallel for in foo()
8932 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribut… in foo()
8935 #pragma omp target teams distribute parallel for in foo()
8937 #pragma omp taskwait // OK in foo()
8940 #pragma omp target teams distribute parallel for in foo()
8942 #pragma omp flush // OK in foo()
8945 #pragma omp target teams distribute parallel for in foo()
8947 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
8950 #pragma omp target teams distribute parallel for in foo()
8952 #pragma omp atomic // OK in foo()
8955 #pragma omp target teams distribute parallel for in foo()
8957 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute para… in foo()
8960 #pragma omp target teams distribute parallel for in foo()
8962 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distr… in foo()
8965 #pragma omp target teams distribute parallel for in foo()
8967 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams di… in foo()
8971 #pragma omp target teams distribute parallel for in foo()
8973 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
8976 #pragma omp target teams distribute parallel for in foo()
8978 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
8981 #pragma omp target teams distribute parallel for in foo()
8983 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribu… in foo()
8986 #pragma omp target teams distribute parallel for in foo()
8988 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams di… in foo()
8991 #pragma omp target teams distribute parallel for in foo()
8993 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target team… in foo()
8997 #pragma omp target teams distribute parallel for in foo()
8999 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute… in foo()
9003 #pragma omp target teams distribute parallel for in foo()
9005 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
9009 #pragma omp target teams distribute parallel for in foo()
9011 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
9015 #pragma omp target teams distribute parallel for in foo()
9017 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
9021 #pragma omp target teams distribute parallel for in foo()
9023 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
9027 #pragma omp target teams distribute parallel for in foo()
9029 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribut… in foo()
9032 #pragma omp target teams distribute parallel for in foo()
9034 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
9038 #pragma omp target teams distribute parallel for in foo()
9040 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
9044 #pragma omp target teams distribute parallel for in foo()
9046 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
9050 #pragma omp target teams distribute parallel for in foo()
9052 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
9058 #pragma omp target teams distribute parallel for simd // OK in foo()
9061 #pragma omp target teams distribute parallel for simd in foo()
9063 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
9067 #pragma omp target teams distribute parallel for simd in foo()
9069 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
9073 #pragma omp target teams distribute parallel for simd in foo()
9075 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9079 #pragma omp target teams distribute parallel for simd in foo()
9081 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
9085 #pragma omp target teams distribute parallel for simd in foo()
9087 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9091 #pragma omp target teams distribute parallel for simd in foo()
9093 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9097 #pragma omp target teams distribute parallel for simd in foo()
9099 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9104 #pragma omp target teams distribute parallel for simd in foo()
9106 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9111 #pragma omp target teams distribute parallel for simd in foo()
9113 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9118 #pragma omp target teams distribute parallel for simd in foo()
9120 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9125 #pragma omp target teams distribute parallel for simd in foo()
9127 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9132 #pragma omp target teams distribute parallel for simd in foo()
9134 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9136 #pragma omp single in foo()
9142 #pragma omp target teams distribute parallel for simd in foo()
9144 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
9148 #pragma omp target teams distribute parallel for simd in foo()
9150 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
9154 #pragma omp target teams distribute parallel for simd in foo()
9156 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
9161 #pragma omp target teams distribute parallel for simd in foo()
9163 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9168 #pragma omp target teams distribute parallel for simd in foo()
9170 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9173 #pragma omp target teams distribute parallel for simd in foo()
9175 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9178 #pragma omp target teams distribute parallel for simd in foo()
9180 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
9183 #pragma omp target teams distribute parallel for simd in foo()
9185 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9188 #pragma omp target teams distribute parallel for simd in foo()
9190 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9193 #pragma omp target teams distribute parallel for simd in foo()
9195 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9198 #pragma omp target teams distribute parallel for simd in foo()
9200 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9203 #pragma omp target teams distribute parallel for simd in foo()
9205 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9208 #pragma omp target teams distribute parallel for simd in foo()
9210 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
9213 #pragma omp target teams distribute parallel for simd in foo()
9215 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
9219 #pragma omp target teams distribute parallel for simd in foo()
9221 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
9224 #pragma omp target teams distribute parallel for simd in foo()
9226 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
9229 #pragma omp target teams distribute parallel for simd in foo()
9231 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9234 #pragma omp target teams distribute parallel for simd in foo()
9236 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
9239 #pragma omp target teams distribute parallel for simd in foo()
9241 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
9245 #pragma omp target teams distribute parallel for simd in foo()
9247 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
9251 #pragma omp target teams distribute parallel for simd in foo()
9253 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
9257 #pragma omp target teams distribute parallel for simd in foo()
9259 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
9263 #pragma omp target teams distribute parallel for simd in foo()
9265 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
9269 #pragma omp target teams distribute parallel for simd in foo()
9271 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
9275 #pragma omp target teams distribute parallel for simd in foo()
9277 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
9280 #pragma omp target teams distribute parallel for simd in foo()
9282 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
9286 #pragma omp target teams distribute parallel for simd in foo()
9288 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
9292 #pragma omp target teams distribute parallel for simd in foo()
9294 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
9298 #pragma omp target teams distribute parallel for simd in foo()
9300 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
9306 #pragma omp target teams distribute simd // OK in foo()
9309 #pragma omp target teams distribute simd in foo()
9311 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
9315 #pragma omp target teams distribute simd in foo()
9317 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
9321 #pragma omp target teams distribute simd in foo()
9323 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9327 #pragma omp target teams distribute simd in foo()
9329 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
9333 #pragma omp target teams distribute simd in foo()
9335 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9339 #pragma omp target teams distribute simd in foo()
9341 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9345 #pragma omp target teams distribute simd in foo()
9347 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9352 #pragma omp target teams distribute simd in foo()
9354 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9359 #pragma omp target teams distribute simd in foo()
9361 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9366 #pragma omp target teams distribute simd in foo()
9368 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9373 #pragma omp target teams distribute simd in foo()
9375 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9380 #pragma omp target teams distribute simd in foo()
9382 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9384 #pragma omp single in foo()
9390 #pragma omp target teams distribute simd in foo()
9392 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
9396 #pragma omp target teams distribute simd in foo()
9398 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
9402 #pragma omp target teams distribute simd in foo()
9404 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
9409 #pragma omp target teams distribute simd in foo()
9411 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9416 #pragma omp target teams distribute simd in foo()
9418 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9421 #pragma omp target teams distribute simd in foo()
9423 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9426 #pragma omp target teams distribute simd in foo()
9428 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
9431 #pragma omp target teams distribute simd in foo()
9433 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9436 #pragma omp target teams distribute simd in foo()
9438 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9441 #pragma omp target teams distribute simd in foo()
9443 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9446 #pragma omp target teams distribute simd in foo()
9448 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9451 #pragma omp target teams distribute simd in foo()
9453 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9456 #pragma omp target teams distribute simd in foo()
9458 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
9461 #pragma omp target teams distribute simd in foo()
9463 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
9467 #pragma omp target teams distribute simd in foo()
9469 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
9472 #pragma omp target teams distribute simd in foo()
9474 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
9477 #pragma omp target teams distribute simd in foo()
9479 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9482 #pragma omp target teams distribute simd in foo()
9484 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
9487 #pragma omp target teams distribute simd in foo()
9489 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
9493 #pragma omp target teams distribute simd in foo()
9495 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
9499 #pragma omp target teams distribute simd in foo()
9501 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
9505 #pragma omp target teams distribute simd in foo()
9507 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
9511 #pragma omp target teams distribute simd in foo()
9513 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
9517 #pragma omp target teams distribute simd in foo()
9519 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
9523 #pragma omp target teams distribute simd in foo()
9525 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
9528 #pragma omp target teams distribute simd in foo()
9530 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
9534 #pragma omp target teams distribute simd in foo()
9536 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
9540 #pragma omp target teams distribute simd in foo()
9542 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
9546 #pragma omp target teams distribute simd in foo()
9548 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
9558 #pragma omp parallel in foo()
9559 #pragma omp for in foo()
9562 #pragma omp parallel in foo()
9563 #pragma omp simd in foo()
9566 #pragma omp parallel in foo()
9567 #pragma omp for simd in foo()
9570 #pragma omp parallel in foo()
9571 #pragma omp sections in foo()
9575 #pragma omp parallel in foo()
9576 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
9580 #pragma omp parallel in foo()
9581 #pragma omp sections in foo()
9585 #pragma omp parallel in foo()
9586 #pragma omp single in foo()
9588 #pragma omp parallel in foo()
9589 #pragma omp master in foo()
9591 #pragma omp parallel master in foo()
9593 #pragma omp parallel in foo()
9594 #pragma omp critical in foo()
9596 #pragma omp parallel in foo()
9597 #pragma omp parallel for in foo()
9600 #pragma omp parallel in foo()
9601 #pragma omp parallel for simd in foo()
9604 #pragma omp parallel in foo()
9605 #pragma omp parallel sections in foo()
9609 #pragma omp parallel in foo()
9610 #pragma omp task in foo()
9614 #pragma omp parallel in foo()
9616 #pragma omp taskyield in foo()
9619 #pragma omp parallel in foo()
9621 #pragma omp barrier in foo()
9624 #pragma omp parallel in foo()
9626 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel' region; perh… in foo()
9629 #pragma omp parallel in foo()
9631 #pragma omp taskwait in foo()
9634 #pragma omp parallel in foo()
9636 #pragma omp flush in foo()
9639 #pragma omp parallel in foo()
9641 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel' region; p… in foo()
9644 #pragma omp parallel in foo()
9646 #pragma omp atomic in foo()
9649 #pragma omp parallel in foo()
9651 #pragma omp target in foo()
9654 #pragma omp parallel in foo()
9656 #pragma omp target parallel in foo()
9659 #pragma omp parallel in foo()
9660 #pragma omp target parallel for in foo()
9663 #pragma omp parallel in foo()
9665 #pragma omp target enter data map(to: a) in foo()
9668 #pragma omp parallel in foo()
9670 #pragma omp target exit data map(from: a) in foo()
9673 #pragma omp parallel in foo()
9675 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel' region; per… in foo()
9678 #pragma omp parallel in foo()
9680 #pragma omp taskloop in foo()
9684 #pragma omp parallel in foo()
9686 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel' region… in foo()
9690 #pragma omp parallel in foo()
9692 #pragma omp target update to(a) in foo()
9695 #pragma omp parallel in foo()
9697 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
9701 #pragma omp parallel in foo()
9703 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
9707 #pragma omp parallel in foo()
9709 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel' r… in foo()
9713 #pragma omp parallel in foo()
9715 #pragma omp target simd // OK in foo()
9719 #pragma omp parallel in foo()
9721 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel' … in foo()
9725 #pragma omp parallel in foo()
9727 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
9731 #pragma omp parallel in foo()
9733 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
9737 #pragma omp parallel in foo()
9739 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
9743 #pragma omp parallel in foo()
9745 #pragma omp target teams // OK in foo()
9748 #pragma omp parallel in foo()
9750 #pragma omp target teams distribute // OK in foo()
9754 #pragma omp parallel in foo()
9756 #pragma omp target teams distribute parallel for // OK in foo()
9760 #pragma omp parallel in foo()
9762 #pragma omp target teams distribute parallel for simd // OK in foo()
9766 #pragma omp parallel in foo()
9768 #pragma omp target teams distribute simd // OK in foo()
9774 #pragma omp simd in foo()
9776 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9780 #pragma omp simd in foo()
9782 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
9786 #pragma omp simd in foo()
9788 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9792 #pragma omp simd in foo()
9794 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9798 #pragma omp simd in foo()
9800 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9805 #pragma omp simd in foo()
9807 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9812 #pragma omp simd in foo()
9814 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9816 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9819 #pragma omp simd in foo()
9821 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9823 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9826 #pragma omp simd in foo()
9828 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
9832 #pragma omp simd in foo()
9834 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
9838 #pragma omp simd in foo()
9840 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
9845 #pragma omp simd in foo()
9847 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9852 #pragma omp simd in foo()
9854 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9857 #pragma omp simd in foo()
9859 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9862 #pragma omp simd in foo()
9864 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
9867 #pragma omp simd in foo()
9869 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9872 #pragma omp simd in foo()
9874 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9877 #pragma omp simd in foo()
9879 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9882 #pragma omp simd in foo()
9884 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9887 #pragma omp simd in foo()
9889 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9892 #pragma omp simd in foo()
9894 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
9897 #pragma omp simd in foo()
9899 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
9903 #pragma omp simd in foo()
9905 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
9908 #pragma omp simd in foo()
9910 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
9913 #pragma omp simd in foo()
9915 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9918 #pragma omp simd in foo()
9920 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9924 #pragma omp simd in foo()
9926 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
9930 #pragma omp simd in foo()
9932 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
9935 #pragma omp simd in foo()
9937 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
9941 #pragma omp simd in foo()
9943 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
9947 #pragma omp simd in foo()
9949 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
9953 #pragma omp simd in foo()
9955 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
9959 #pragma omp simd in foo()
9961 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
9965 #pragma omp simd in foo()
9967 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
9971 #pragma omp simd in foo()
9973 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
9977 #pragma omp simd in foo()
9979 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
9983 #pragma omp simd in foo()
9985 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
9988 #pragma omp simd in foo()
9990 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
9994 #pragma omp simd in foo()
9996 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
10000 #pragma omp simd in foo()
10002 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
10006 #pragma omp simd in foo()
10008 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
10014 #pragma omp for in foo()
10016 #pragma omp for // expected-error {{region cannot be closely nested inside 'for' region; perhaps yo… in foo()
10020 #pragma omp for in foo()
10022 #pragma omp simd in foo()
10026 #pragma omp for in foo()
10028 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'for' region; perha… in foo()
10032 #pragma omp for in foo()
10034 #pragma omp parallel in foo()
10038 #pragma omp for in foo()
10040 #pragma omp sections // expected-error {{region cannot be closely nested inside 'for' region; perha… in foo()
10045 #pragma omp for in foo()
10047 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
10052 #pragma omp for in foo()
10054 #pragma omp single // expected-error {{region cannot be closely nested inside 'for' region; perhaps… in foo()
10056 #pragma omp master // expected-error {{region cannot be closely nested inside 'for' region}} in foo()
10058 #pragma omp critical in foo()
10061 #pragma omp for in foo()
10063 #pragma omp parallel in foo()
10065 #pragma omp single // OK in foo()
10069 #pragma omp for // OK in foo()
10072 #pragma omp for simd // OK in foo()
10075 #pragma omp sections // OK in foo()
10081 #pragma omp for in foo()
10083 #pragma omp parallel for in foo()
10087 #pragma omp for in foo()
10089 #pragma omp parallel for simd in foo()
10093 #pragma omp for in foo()
10095 #pragma omp parallel sections in foo()
10100 #pragma omp for in foo()
10102 #pragma omp task in foo()
10107 #pragma omp for in foo()
10109 #pragma omp taskyield in foo()
10112 #pragma omp for in foo()
10114 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'for' region}} in foo()
10117 #pragma omp for in foo()
10119 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'for' region}} omp50-error… in foo()
10122 #pragma omp for in foo()
10124 #pragma omp taskwait in foo()
10127 #pragma omp for in foo()
10129 #pragma omp flush in foo()
10132 #pragma omp for in foo()
10134 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'for' region; perhap… in foo()
10137 #pragma omp for ordered in foo()
10139 #pragma omp ordered // OK in foo()
10142 #pragma omp for in foo()
10144 #pragma omp atomic in foo()
10147 #pragma omp for in foo()
10149 #pragma omp target in foo()
10152 #pragma omp for in foo()
10154 #pragma omp target parallel in foo()
10157 #pragma omp for in foo()
10159 #pragma omp target parallel for in foo()
10163 #pragma omp for in foo()
10165 #pragma omp target enter data map(to: a) in foo()
10168 #pragma omp for in foo()
10170 #pragma omp target exit data map(from: a) in foo()
10173 #pragma omp for in foo()
10175 #pragma omp teams // expected-error {{region cannot be closely nested inside 'for' region; perhaps … in foo()
10178 #pragma omp for in foo()
10180 #pragma omp taskloop in foo()
10184 #pragma omp for in foo()
10186 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'for' region; per… in foo()
10190 #pragma omp for in foo()
10192 #pragma omp target update to(a) in foo()
10195 #pragma omp for in foo()
10197 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'for… in foo()
10201 #pragma omp for in foo()
10203 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
10207 #pragma omp for in foo()
10209 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'for' region… in foo()
10213 #pragma omp for in foo()
10215 #pragma omp target simd // OK in foo()
10219 #pragma omp for in foo()
10221 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'for' regio… in foo()
10225 #pragma omp for in foo()
10227 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'for' … in foo()
10231 #pragma omp for in foo()
10233 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
10237 #pragma omp for in foo()
10239 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
10243 #pragma omp for in foo()
10245 #pragma omp target teams // OK in foo()
10248 #pragma omp for in foo()
10250 #pragma omp target teams distribute // OK in foo()
10254 #pragma omp for in foo()
10256 #pragma omp target teams distribute parallel for // OK in foo()
10260 #pragma omp for in foo()
10262 #pragma omp target teams distribute parallel for simd // OK in foo()
10266 #pragma omp for in foo()
10268 #pragma omp target teams distribute simd // OK in foo()
10274 #pragma omp for simd in foo()
10276 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10280 #pragma omp for simd in foo()
10282 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
10286 #pragma omp for simd in foo()
10288 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10292 #pragma omp for simd in foo()
10294 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10298 #pragma omp for simd in foo()
10300 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10305 #pragma omp for simd in foo()
10307 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10312 #pragma omp for simd in foo()
10314 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10316 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10319 #pragma omp for simd in foo()
10321 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10323 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10326 #pragma omp for simd in foo()
10328 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
10332 #pragma omp for simd in foo()
10334 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
10338 #pragma omp for simd in foo()
10340 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
10345 #pragma omp for simd in foo()
10347 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10352 #pragma omp for simd in foo()
10354 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10357 #pragma omp for simd in foo()
10359 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10362 #pragma omp for simd in foo()
10364 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
10367 #pragma omp for simd in foo()
10369 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10372 #pragma omp for simd in foo()
10374 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10377 #pragma omp for simd in foo()
10379 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10382 #pragma omp for simd in foo()
10384 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10387 #pragma omp for simd in foo()
10389 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10392 #pragma omp for simd in foo()
10394 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
10397 #pragma omp for simd in foo()
10399 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
10403 #pragma omp for simd in foo()
10405 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
10408 #pragma omp for simd in foo()
10410 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
10413 #pragma omp for simd in foo()
10415 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10418 #pragma omp for simd in foo()
10420 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10424 #pragma omp for simd in foo()
10426 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
10430 #pragma omp for simd in foo()
10432 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
10435 #pragma omp for simd in foo()
10437 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
10441 #pragma omp for simd in foo()
10443 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
10447 #pragma omp for simd in foo()
10449 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
10453 #pragma omp for simd in foo()
10455 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
10459 #pragma omp for simd in foo()
10461 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
10465 #pragma omp for simd in foo()
10467 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
10471 #pragma omp for simd in foo()
10473 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
10477 #pragma omp for simd in foo()
10479 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
10483 #pragma omp for simd in foo()
10485 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
10488 #pragma omp for simd in foo()
10490 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
10494 #pragma omp for simd in foo()
10496 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
10500 #pragma omp for simd in foo()
10502 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
10506 #pragma omp for simd in foo()
10508 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
10514 #pragma omp sections in foo()
10516 #pragma omp for // expected-error {{region cannot be closely nested inside 'sections' region; perha… in foo()
10520 #pragma omp sections in foo()
10522 #pragma omp simd in foo()
10526 #pragma omp sections in foo()
10528 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'sections' region; … in foo()
10532 #pragma omp sections in foo()
10534 #pragma omp parallel in foo()
10538 #pragma omp sections in foo()
10540 #pragma omp sections // expected-error {{region cannot be closely nested inside 'sections' region; … in foo()
10545 #pragma omp sections in foo()
10547 #pragma omp section in foo()
10552 #pragma omp sections in foo()
10554 #pragma omp critical in foo()
10556 #pragma omp single // expected-error {{region cannot be closely nested inside 'sections' region; pe… in foo()
10558 #pragma omp master // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
10561 #pragma omp sections in foo()
10563 #pragma omp parallel in foo()
10565 #pragma omp single // OK in foo()
10569 #pragma omp for // OK in foo()
10572 #pragma omp for simd // OK in foo()
10575 #pragma omp sections // OK in foo()
10581 #pragma omp sections in foo()
10583 #pragma omp parallel for in foo()
10587 #pragma omp sections in foo()
10589 #pragma omp parallel for simd in foo()
10593 #pragma omp sections in foo()
10595 #pragma omp parallel sections in foo()
10600 #pragma omp sections in foo()
10602 #pragma omp task in foo()
10607 #pragma omp sections in foo()
10609 #pragma omp taskyield in foo()
10611 #pragma omp sections in foo()
10613 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
10616 #pragma omp sections in foo()
10618 #pragma omp scan // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
10621 #pragma omp sections in foo()
10623 #pragma omp taskwait in foo()
10625 #pragma omp sections in foo()
10627 #pragma omp flush in foo()
10629 #pragma omp sections in foo()
10631 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'sections' region; p… in foo()
10634 #pragma omp sections in foo()
10636 #pragma omp atomic in foo()
10639 #pragma omp sections in foo()
10641 #pragma omp target in foo()
10644 #pragma omp sections in foo()
10646 #pragma omp target parallel in foo()
10649 #pragma omp sections in foo()
10651 #pragma omp target parallel for in foo()
10655 #pragma omp sections in foo()
10657 #pragma omp target enter data map(to: a) in foo()
10659 #pragma omp sections in foo()
10661 #pragma omp target exit data map(from: a) in foo()
10663 #pragma omp sections in foo()
10665 #pragma omp teams // expected-error {{region cannot be closely nested inside 'sections' region; per… in foo()
10668 #pragma omp sections in foo()
10670 #pragma omp taskloop in foo()
10674 #pragma omp sections in foo()
10676 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'sections' region… in foo()
10680 #pragma omp sections in foo()
10682 #pragma omp target update to(a) in foo()
10684 #pragma omp sections in foo()
10686 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sec… in foo()
10690 #pragma omp sections in foo()
10692 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
10696 #pragma omp sections in foo()
10698 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'sections' r… in foo()
10702 #pragma omp sections in foo()
10704 #pragma omp target simd // OK in foo()
10708 #pragma omp sections in foo()
10710 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'sections' … in foo()
10714 #pragma omp sections in foo()
10716 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'secti… in foo()
10720 #pragma omp sections in foo()
10722 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
10726 #pragma omp sections in foo()
10728 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
10732 #pragma omp sections in foo()
10734 #pragma omp target teams // OK in foo()
10737 #pragma omp sections in foo()
10739 #pragma omp target teams distribute // OK in foo()
10743 #pragma omp sections in foo()
10745 #pragma omp target teams distribute parallel for // OK in foo()
10749 #pragma omp sections in foo()
10751 #pragma omp target teams distribute parallel for simd // OK in foo()
10755 #pragma omp sections in foo()
10757 #pragma omp target teams distribute simd // OK in foo()
10763 #pragma omp section // expected-error {{orphaned 'omp section' directives are prohibited, it must b… in foo()
10767 #pragma omp sections in foo()
10769 #pragma omp section in foo()
10771 #pragma omp for // expected-error {{region cannot be closely nested inside 'section' region; perhap… in foo()
10776 #pragma omp sections in foo()
10778 #pragma omp section in foo()
10780 #pragma omp simd in foo()
10785 #pragma omp sections in foo()
10787 #pragma omp section in foo()
10789 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'section' region; p… in foo()
10794 #pragma omp sections in foo()
10796 #pragma omp section in foo()
10798 #pragma omp parallel in foo()
10803 #pragma omp sections in foo()
10805 #pragma omp section in foo()
10807 #pragma omp sections // expected-error {{region cannot be closely nested inside 'section' region; p… in foo()
10813 #pragma omp sections in foo()
10815 #pragma omp section in foo()
10817 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
10823 #pragma omp sections in foo()
10825 #pragma omp section in foo()
10827 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; per… in foo()
10829 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
10831 #pragma omp critical in foo()
10835 #pragma omp sections in foo()
10837 #pragma omp section in foo()
10839 #pragma omp parallel in foo()
10841 #pragma omp single // OK in foo()
10845 #pragma omp for // OK in foo()
10848 #pragma omp for simd // OK in foo()
10851 #pragma omp sections // OK in foo()
10858 #pragma omp sections in foo()
10860 #pragma omp section in foo()
10862 #pragma omp parallel for in foo()
10867 #pragma omp sections in foo()
10869 #pragma omp section in foo()
10871 #pragma omp parallel for simd in foo()
10876 #pragma omp sections in foo()
10878 #pragma omp section in foo()
10880 #pragma omp parallel sections in foo()
10886 #pragma omp sections in foo()
10888 #pragma omp section in foo()
10890 #pragma omp task in foo()
10896 #pragma omp sections in foo()
10898 #pragma omp section in foo()
10900 #pragma omp taskyield in foo()
10904 #pragma omp sections in foo()
10906 #pragma omp section in foo()
10908 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
10912 #pragma omp sections in foo()
10914 #pragma omp section in foo()
10916 #pragma omp scan // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
10920 #pragma omp sections in foo()
10922 #pragma omp section in foo()
10924 #pragma omp taskwait in foo()
10928 #pragma omp sections in foo()
10930 #pragma omp section in foo()
10932 #pragma omp flush in foo()
10936 #pragma omp sections in foo()
10938 #pragma omp section in foo()
10940 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'section' region; pe… in foo()
10944 #pragma omp sections in foo()
10946 #pragma omp section in foo()
10948 #pragma omp atomic in foo()
10952 #pragma omp sections in foo()
10954 #pragma omp section in foo()
10956 #pragma omp target in foo()
10960 #pragma omp sections in foo()
10962 #pragma omp section in foo()
10964 #pragma omp target parallel in foo()
10968 #pragma omp sections in foo()
10970 #pragma omp section in foo()
10972 #pragma omp target parallel for in foo()
10977 #pragma omp sections in foo()
10979 #pragma omp section in foo()
10981 #pragma omp target enter data map(to: a) in foo()
10985 #pragma omp sections in foo()
10987 #pragma omp section in foo()
10989 #pragma omp target exit data map(from: a) in foo()
10993 #pragma omp sections in foo()
10995 #pragma omp section in foo()
10997 #pragma omp teams // expected-error {{region cannot be closely nested inside 'section' region; perh… in foo()
11001 #pragma omp sections in foo()
11003 #pragma omp section in foo()
11005 #pragma omp taskloop in foo()
11010 #pragma omp sections in foo()
11012 #pragma omp section in foo()
11013 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'section' region;… in foo()
11017 #pragma omp sections in foo()
11019 #pragma omp section in foo()
11021 #pragma omp target update to(a) in foo()
11025 #pragma omp sections in foo()
11027 #pragma omp section in foo()
11028 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sec… in foo()
11032 #pragma omp sections in foo()
11034 #pragma omp section in foo()
11035 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
11039 #pragma omp sections in foo()
11041 #pragma omp section in foo()
11042 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'section' re… in foo()
11046 #pragma omp sections in foo()
11048 #pragma omp section in foo()
11049 #pragma omp target simd // OK in foo()
11053 #pragma omp sections in foo()
11055 #pragma omp section in foo()
11056 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'section' r… in foo()
11060 #pragma omp sections in foo()
11062 #pragma omp section in foo()
11063 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'secti… in foo()
11067 #pragma omp sections in foo()
11069 #pragma omp section in foo()
11070 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
11074 #pragma omp sections in foo()
11076 #pragma omp section in foo()
11077 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
11081 #pragma omp sections in foo()
11083 #pragma omp section in foo()
11084 #pragma omp target teams // OK in foo()
11087 #pragma omp sections in foo()
11089 #pragma omp section in foo()
11090 #pragma omp target teams distribute // OK in foo()
11094 #pragma omp sections in foo()
11096 #pragma omp section in foo()
11097 #pragma omp target teams distribute parallel for // OK in foo()
11101 #pragma omp sections in foo()
11103 #pragma omp section in foo()
11104 #pragma omp target teams distribute parallel for simd // OK in foo()
11108 #pragma omp sections in foo()
11110 #pragma omp section in foo()
11111 #pragma omp target teams distribute simd // OK in foo()
11117 #pragma omp single in foo()
11119 #pragma omp for // expected-error {{region cannot be closely nested inside 'single' region; perhaps… in foo()
11123 #pragma omp single in foo()
11125 #pragma omp simd in foo()
11129 #pragma omp single in foo()
11131 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'single' region; pe… in foo()
11135 #pragma omp single in foo()
11137 #pragma omp parallel in foo()
11141 #pragma omp single in foo()
11143 #pragma omp single // expected-error {{region cannot be closely nested inside 'single' region; perh… in foo()
11147 #pragma omp master // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
11149 #pragma omp critical in foo()
11152 #pragma omp single in foo()
11154 #pragma omp sections // expected-error {{region cannot be closely nested inside 'single' region; pe… in foo()
11159 #pragma omp single in foo()
11161 #pragma omp parallel in foo()
11163 #pragma omp single // OK in foo()
11167 #pragma omp for // OK in foo()
11170 #pragma omp for simd // OK in foo()
11173 #pragma omp sections // OK in foo()
11179 #pragma omp single in foo()
11181 #pragma omp parallel for in foo()
11185 #pragma omp single in foo()
11187 #pragma omp parallel for simd in foo()
11191 #pragma omp single in foo()
11193 #pragma omp parallel sections in foo()
11198 #pragma omp single in foo()
11200 #pragma omp task in foo()
11205 #pragma omp single in foo()
11207 #pragma omp taskyield in foo()
11210 #pragma omp single in foo()
11212 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
11215 #pragma omp single in foo()
11217 #pragma omp scan // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
11220 #pragma omp single in foo()
11222 #pragma omp taskwait in foo()
11225 #pragma omp single in foo()
11227 #pragma omp flush in foo()
11230 #pragma omp single in foo()
11232 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'single' region; per… in foo()
11235 #pragma omp single in foo()
11237 #pragma omp atomic in foo()
11240 #pragma omp single in foo()
11242 #pragma omp target in foo()
11245 #pragma omp single in foo()
11247 #pragma omp target parallel in foo()
11250 #pragma omp single in foo()
11252 #pragma omp target parallel for in foo()
11256 #pragma omp single in foo()
11258 #pragma omp target enter data map(to: a) in foo()
11261 #pragma omp single in foo()
11263 #pragma omp target exit data map(from: a) in foo()
11266 #pragma omp single in foo()
11268 #pragma omp teams // expected-error {{region cannot be closely nested inside 'single' region; perha… in foo()
11271 #pragma omp single in foo()
11273 #pragma omp taskloop in foo()
11277 #pragma omp single in foo()
11279 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'single' region; … in foo()
11283 #pragma omp single in foo()
11285 #pragma omp target update to(a) in foo()
11288 #pragma omp single in foo()
11290 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sin… in foo()
11294 #pragma omp single in foo()
11296 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
11300 #pragma omp single in foo()
11302 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'single' reg… in foo()
11306 #pragma omp single in foo()
11308 #pragma omp target simd // OK in foo()
11312 #pragma omp single in foo()
11314 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'single' re… in foo()
11318 #pragma omp single in foo()
11320 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'singl… in foo()
11324 #pragma omp single in foo()
11326 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
11330 #pragma omp single in foo()
11332 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
11336 #pragma omp single in foo()
11338 #pragma omp target teams // oK in foo()
11341 #pragma omp single in foo()
11343 #pragma omp target teams distribute // OK in foo()
11347 #pragma omp single in foo()
11349 #pragma omp target teams distribute parallel for // OK in foo()
11353 #pragma omp single in foo()
11355 #pragma omp target teams distribute parallel for simd // OK in foo()
11359 #pragma omp single in foo()
11361 #pragma omp target teams distribute simd // OK in foo()
11367 #pragma omp master in foo()
11369 #pragma omp for // expected-error {{region cannot be closely nested inside 'master' region; perhaps… in foo()
11373 #pragma omp master in foo()
11375 #pragma omp simd in foo()
11379 #pragma omp master in foo()
11381 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'master' region; pe… in foo()
11385 #pragma omp master in foo()
11387 #pragma omp parallel in foo()
11391 #pragma omp parallel master in foo()
11396 #pragma omp master in foo()
11398 #pragma omp single // expected-error {{region cannot be closely nested inside 'master' region; perh… in foo()
11403 #pragma omp master in foo()
11405 #pragma omp master // OK, though second 'master' is redundant in foo()
11410 #pragma omp master in foo()
11412 #pragma omp critical in foo()
11417 #pragma omp master in foo()
11419 #pragma omp sections // expected-error {{region cannot be closely nested inside 'master' region; pe… in foo()
11424 #pragma omp master in foo()
11426 #pragma omp parallel in foo()
11428 #pragma omp master // OK in foo()
11432 #pragma omp for // OK in foo()
11435 #pragma omp for simd // OK in foo()
11438 #pragma omp sections // OK in foo()
11444 #pragma omp master in foo()
11446 #pragma omp parallel master in foo()
11451 #pragma omp master in foo()
11453 #pragma omp parallel for in foo()
11457 #pragma omp master in foo()
11459 #pragma omp parallel for simd in foo()
11463 #pragma omp master in foo()
11465 #pragma omp parallel sections in foo()
11470 #pragma omp master in foo()
11472 #pragma omp task in foo()
11477 #pragma omp master in foo()
11479 #pragma omp taskyield in foo()
11482 #pragma omp master in foo()
11484 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'master' region}} in foo()
11487 #pragma omp master in foo()
11489 #pragma omp scan // expected-error {{region cannot be closely nested inside 'master' region}} in foo()
11492 #pragma omp master in foo()
11494 #pragma omp taskwait in foo()
11497 #pragma omp master in foo()
11499 #pragma omp flush in foo()
11502 #pragma omp master in foo()
11504 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'master' region; per… in foo()
11507 #pragma omp master in foo()
11509 #pragma omp atomic in foo()
11512 #pragma omp master in foo()
11514 #pragma omp target in foo()
11517 #pragma omp master in foo()
11519 #pragma omp target parallel in foo()
11522 #pragma omp master in foo()
11524 #pragma omp target parallel for in foo()
11528 #pragma omp master in foo()
11530 #pragma omp target enter data map(to: a) in foo()
11533 #pragma omp master in foo()
11535 #pragma omp target exit data map(from: a) in foo()
11538 #pragma omp master in foo()
11540 #pragma omp teams // expected-error {{region cannot be closely nested inside 'master' region; perha… in foo()
11543 #pragma omp master in foo()
11545 #pragma omp taskloop in foo()
11549 #pragma omp master in foo()
11551 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'master' region; … in foo()
11555 #pragma omp master in foo()
11557 #pragma omp target update to(a) in foo()
11560 #pragma omp master in foo()
11562 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'mas… in foo()
11566 #pragma omp master in foo()
11568 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
11572 #pragma omp master in foo()
11574 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'master' reg… in foo()
11578 #pragma omp master in foo()
11580 #pragma omp target simd // OK in foo()
11584 #pragma omp master in foo()
11586 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'master' re… in foo()
11590 #pragma omp master in foo()
11592 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'maste… in foo()
11596 #pragma omp master in foo()
11598 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
11602 #pragma omp master in foo()
11604 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
11608 #pragma omp master in foo()
11610 #pragma omp target teams // OK in foo()
11613 #pragma omp master in foo()
11615 #pragma omp target teams distribute // OK in foo()
11619 #pragma omp master in foo()
11621 #pragma omp target teams distribute parallel for // OK in foo()
11625 #pragma omp master in foo()
11627 #pragma omp target teams distribute parallel for simd // OK in foo()
11631 #pragma omp master in foo()
11633 #pragma omp target teams distribute simd // OK in foo()
11639 #pragma omp critical in foo()
11641 #pragma omp for // expected-error {{region cannot be closely nested inside 'critical' region; perha… in foo()
11645 #pragma omp critical in foo()
11647 #pragma omp simd in foo()
11651 #pragma omp critical in foo()
11653 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'critical' region; … in foo()
11657 #pragma omp critical in foo()
11659 #pragma omp parallel in foo()
11663 #pragma omp critical in foo()
11665 #pragma omp single // expected-error {{region cannot be closely nested inside 'critical' region; pe… in foo()
11670 #pragma omp critical in foo()
11672 #pragma omp master // OK, though second 'master' is redundant in foo()
11677 #pragma omp critical in foo()
11679 #pragma omp critical in foo()
11684 #pragma omp critical in foo()
11686 #pragma omp sections // expected-error {{region cannot be closely nested inside 'critical' region; … in foo()
11691 #pragma omp critical in foo()
11693 #pragma omp parallel in foo()
11695 #pragma omp master // OK in foo()
11699 #pragma omp for // OK in foo()
11702 #pragma omp for simd // OK in foo()
11705 #pragma omp sections // OK in foo()
11711 #pragma omp critical in foo()
11713 #pragma omp parallel for in foo()
11717 #pragma omp critical in foo()
11719 #pragma omp parallel for simd in foo()
11723 #pragma omp critical in foo()
11725 #pragma omp parallel sections in foo()
11730 #pragma omp critical in foo()
11732 #pragma omp task in foo()
11737 #pragma omp critical in foo()
11739 #pragma omp taskyield in foo()
11742 #pragma omp critical in foo()
11744 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'critical' region}} in foo()
11747 #pragma omp critical in foo()
11749 #pragma omp scan // expected-error {{region cannot be closely nested inside 'critical' region}} in foo()
11752 #pragma omp critical in foo()
11754 #pragma omp taskwait in foo()
11757 #pragma omp critical(Belka) in foo()
11759 #pragma omp critical(Strelka) in foo()
11762 #pragma omp critical(Tuzik) // expected-note {{previous 'critical' region starts here}} in foo()
11764 #pragma omp critical(grelka) // expected-note {{previous 'critical' region starts here}} in foo()
11766 #pragma omp critical(Tuzik) // expected-error {{cannot nest 'critical' regions having the same name… in foo()
11768 #pragma omp parallel in foo()
11769 #pragma omp critical(grelka) // expected-error {{cannot nest 'critical' regions having the same nam… in foo()
11776 #pragma omp critical in foo()
11778 #pragma omp flush in foo()
11781 #pragma omp critical in foo()
11783 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'critical' region; p… in foo()
11786 #pragma omp critical in foo()
11788 #pragma omp atomic in foo()
11791 #pragma omp critical in foo()
11793 #pragma omp target in foo()
11796 #pragma omp critical in foo()
11798 #pragma omp target parallel in foo()
11801 #pragma omp critical in foo()
11803 #pragma omp target parallel for in foo()
11807 #pragma omp critical in foo()
11809 #pragma omp target enter data map(to: a) in foo()
11812 #pragma omp critical in foo()
11814 #pragma omp target exit data map(from: a) in foo()
11817 #pragma omp critical in foo()
11819 #pragma omp teams // expected-error {{region cannot be closely nested inside 'critical' region; per… in foo()
11822 #pragma omp critical in foo()
11824 #pragma omp taskloop in foo()
11828 #pragma omp critical in foo()
11830 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'critical' region… in foo()
11834 #pragma omp critical in foo()
11836 #pragma omp target update to(a) in foo()
11839 #pragma omp critical in foo()
11841 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'cri… in foo()
11845 #pragma omp critical in foo()
11847 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
11851 #pragma omp critical in foo()
11853 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'critical' r… in foo()
11857 #pragma omp critical in foo()
11859 #pragma omp target simd // OK in foo()
11863 #pragma omp critical in foo()
11865 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'critical' … in foo()
11869 #pragma omp critical in foo()
11871 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'criti… in foo()
11875 #pragma omp critical in foo()
11877 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
11881 #pragma omp critical in foo()
11883 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
11887 #pragma omp critical in foo()
11889 #pragma omp target teams // OK in foo()
11892 #pragma omp critical in foo()
11894 #pragma omp target teams distribute // OK in foo()
11898 #pragma omp critical in foo()
11900 #pragma omp target teams distribute parallel for // OK in foo()
11904 #pragma omp critical in foo()
11906 #pragma omp target teams distribute parallel for simd // OK in foo()
11910 #pragma omp critical in foo()
11912 #pragma omp target teams distribute simd // OK in foo()
11918 #pragma omp parallel for in foo()
11920 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel for' region; p… in foo()
11924 #pragma omp parallel for in foo()
11926 #pragma omp simd in foo()
11930 #pragma omp parallel for in foo()
11932 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel for' regi… in foo()
11937 #pragma omp parallel for in foo()
11939 #pragma omp parallel in foo()
11943 #pragma omp parallel for in foo()
11945 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel for' regi… in foo()
11950 #pragma omp parallel for in foo()
11952 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
11957 #pragma omp parallel for in foo()
11959 #pragma omp single // expected-error {{region cannot be closely nested inside 'parallel for' region… in foo()
11963 #pragma omp master // expected-error {{region cannot be closely nested inside 'parallel for' region… in foo()
11967 #pragma omp critical in foo()
11972 #pragma omp parallel for in foo()
11974 #pragma omp parallel in foo()
11976 #pragma omp single // OK in foo()
11980 #pragma omp master // OK in foo()
11984 #pragma omp critical // OK in foo()
11988 #pragma omp for // OK in foo()
11991 #pragma omp for simd // OK in foo()
11994 #pragma omp sections // OK in foo()
12000 #pragma omp parallel for in foo()
12002 #pragma omp parallel for in foo()
12006 #pragma omp parallel for in foo()
12008 #pragma omp parallel for simd in foo()
12012 #pragma omp parallel for in foo()
12014 #pragma omp parallel sections in foo()
12019 #pragma omp parallel for in foo()
12021 #pragma omp task in foo()
12026 #pragma omp parallel for in foo()
12028 #pragma omp taskyield in foo()
12031 #pragma omp parallel for in foo()
12033 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel for' regio… in foo()
12036 #pragma omp parallel for in foo()
12038 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'parallel for' region}} om… in foo()
12041 #pragma omp parallel for in foo()
12043 #pragma omp taskwait in foo()
12046 #pragma omp parallel for in foo()
12048 #pragma omp flush in foo()
12051 #pragma omp parallel for in foo()
12053 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel for' regio… in foo()
12056 #pragma omp parallel for ordered in foo()
12058 #pragma omp ordered // OK in foo()
12061 #pragma omp parallel for in foo()
12063 #pragma omp atomic in foo()
12066 #pragma omp parallel for in foo()
12068 #pragma omp target in foo()
12071 #pragma omp parallel for in foo()
12073 #pragma omp target parallel in foo()
12076 #pragma omp parallel for in foo()
12078 #pragma omp target parallel for in foo()
12082 #pragma omp parallel for in foo()
12084 #pragma omp target enter data map(to: a) in foo()
12087 #pragma omp parallel for in foo()
12089 #pragma omp target exit data map(from: a) in foo()
12092 #pragma omp parallel for in foo()
12094 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel for' region;… in foo()
12097 #pragma omp parallel for in foo()
12099 #pragma omp taskloop in foo()
12103 #pragma omp parallel for in foo()
12105 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel for' re… in foo()
12109 #pragma omp parallel for in foo()
12111 #pragma omp target update to(a) in foo()
12114 #pragma omp parallel for in foo()
12116 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
12120 #pragma omp parallel for in foo()
12122 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
12126 #pragma omp parallel for in foo()
12128 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel fo… in foo()
12132 #pragma omp parallel for in foo()
12134 #pragma omp target simd // OK in foo()
12138 #pragma omp parallel for in foo()
12140 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel f… in foo()
12144 #pragma omp parallel for in foo()
12146 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
12150 #pragma omp parallel for in foo()
12152 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
12156 #pragma omp parallel for in foo()
12158 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
12162 #pragma omp parallel for in foo()
12164 #pragma omp target teams // OK in foo()
12167 #pragma omp parallel for in foo()
12169 #pragma omp target teams distribute // OK in foo()
12173 #pragma omp parallel for in foo()
12175 #pragma omp target teams distribute parallel for // OK in foo()
12179 #pragma omp parallel for in foo()
12181 #pragma omp target teams distribute parallel for simd // OK in foo()
12185 #pragma omp parallel for in foo()
12187 #pragma omp target teams distribute simd // OK in foo()
12193 #pragma omp parallel for simd in foo()
12195 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12199 #pragma omp parallel for simd in foo()
12201 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
12205 #pragma omp parallel for simd in foo()
12207 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12211 #pragma omp parallel for simd in foo()
12213 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12217 #pragma omp parallel for simd in foo()
12219 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12224 #pragma omp parallel for simd in foo()
12226 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12231 #pragma omp parallel for simd in foo()
12233 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12239 #pragma omp parallel for simd in foo()
12241 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12247 #pragma omp parallel for simd in foo()
12249 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12255 #pragma omp parallel for simd in foo()
12257 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12259 #pragma omp single in foo()
12263 #pragma omp for in foo()
12266 #pragma omp for simd in foo()
12269 #pragma omp sections in foo()
12275 #pragma omp parallel for simd in foo()
12277 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
12281 #pragma omp parallel for simd in foo()
12283 #pragma omp parallel for simd// expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
12287 #pragma omp parallel for simd in foo()
12289 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
12294 #pragma omp parallel for simd in foo()
12296 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12301 #pragma omp parallel for simd in foo()
12303 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12306 #pragma omp parallel for simd in foo()
12308 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12311 #pragma omp parallel for simd in foo()
12313 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
12316 #pragma omp parallel for simd in foo()
12318 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12321 #pragma omp parallel for simd in foo()
12323 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12326 #pragma omp parallel for simd in foo()
12328 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12331 #pragma omp parallel for simd in foo()
12333 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12336 #pragma omp parallel for simd in foo()
12338 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12341 #pragma omp parallel for simd in foo()
12343 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12346 #pragma omp parallel for simd in foo()
12348 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
12351 #pragma omp parallel for simd in foo()
12353 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
12357 #pragma omp parallel for simd in foo()
12359 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
12362 #pragma omp parallel for simd in foo()
12364 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
12367 #pragma omp parallel for simd in foo()
12369 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12372 #pragma omp parallel for simd in foo()
12374 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12378 #pragma omp parallel for simd in foo()
12380 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
12384 #pragma omp parallel for simd in foo()
12386 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
12389 #pragma omp parallel for simd in foo()
12391 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
12395 #pragma omp parallel for simd in foo()
12397 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
12401 #pragma omp parallel for simd in foo()
12403 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
12407 #pragma omp parallel for simd in foo()
12409 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
12413 #pragma omp parallel for simd in foo()
12415 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
12419 #pragma omp parallel for simd in foo()
12421 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
12425 #pragma omp parallel for simd in foo()
12427 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
12431 #pragma omp parallel for simd in foo()
12433 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
12437 #pragma omp parallel for simd in foo()
12439 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
12442 #pragma omp parallel for simd in foo()
12444 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
12448 #pragma omp parallel for simd in foo()
12450 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
12454 #pragma omp parallel for simd in foo()
12456 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
12460 #pragma omp parallel for simd in foo()
12462 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
12468 #pragma omp parallel sections in foo()
12470 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel sections' regi… in foo()
12474 #pragma omp parallel sections in foo()
12476 #pragma omp simd in foo()
12480 #pragma omp parallel sections in foo()
12482 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel sections'… in foo()
12486 #pragma omp parallel sections in foo()
12488 #pragma omp parallel in foo()
12492 #pragma omp parallel sections in foo()
12494 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel sections'… in foo()
12499 #pragma omp parallel sections in foo()
12501 #pragma omp section in foo()
12506 #pragma omp parallel sections in foo()
12508 #pragma omp section in foo()
12510 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; per… in foo()
12512 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
12514 #pragma omp critical in foo()
12518 #pragma omp parallel sections in foo()
12520 #pragma omp parallel in foo()
12522 #pragma omp single // OK in foo()
12526 #pragma omp master // OK in foo()
12530 #pragma omp critical // OK in foo()
12534 #pragma omp for // OK in foo()
12537 #pragma omp for simd // OK in foo()
12540 #pragma omp sections // OK in foo()
12546 #pragma omp parallel sections in foo()
12548 #pragma omp parallel for in foo()
12552 #pragma omp parallel sections in foo()
12554 #pragma omp parallel for simd in foo()
12558 #pragma omp parallel sections in foo()
12560 #pragma omp parallel sections in foo()
12565 #pragma omp parallel sections in foo()
12567 #pragma omp task in foo()
12572 #pragma omp parallel sections in foo()
12574 #pragma omp taskyield in foo()
12576 #pragma omp parallel sections in foo()
12578 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel sections' … in foo()
12580 #pragma omp parallel sections in foo()
12582 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel sections' reg… in foo()
12584 #pragma omp parallel sections in foo()
12586 #pragma omp taskwait in foo()
12588 #pragma omp parallel sections in foo()
12590 #pragma omp flush in foo()
12592 #pragma omp parallel sections in foo()
12594 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel sections' … in foo()
12597 #pragma omp parallel sections in foo()
12599 #pragma omp atomic in foo()
12602 #pragma omp parallel sections in foo()
12604 #pragma omp target in foo()
12607 #pragma omp parallel sections in foo()
12609 #pragma omp target parallel in foo()
12612 #pragma omp parallel sections in foo()
12614 #pragma omp target parallel for in foo()
12618 #pragma omp parallel sections in foo()
12620 #pragma omp target enter data map(to: a) in foo()
12622 #pragma omp parallel sections in foo()
12624 #pragma omp target exit data map(from: a) in foo()
12626 #pragma omp parallel sections in foo()
12628 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel sections' re… in foo()
12631 #pragma omp parallel sections in foo()
12633 #pragma omp taskloop in foo()
12637 #pragma omp parallel sections in foo()
12639 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel section… in foo()
12643 #pragma omp parallel sections in foo()
12645 #pragma omp target update to(a) in foo()
12647 #pragma omp parallel sections in foo()
12649 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
12653 #pragma omp parallel sections in foo()
12655 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
12659 #pragma omp parallel sections in foo()
12661 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel se… in foo()
12665 #pragma omp parallel sections in foo()
12667 #pragma omp target simd // OK in foo()
12671 #pragma omp parallel sections in foo()
12673 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel s… in foo()
12677 #pragma omp parallel sections in foo()
12679 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
12683 #pragma omp parallel sections in foo()
12685 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
12689 #pragma omp parallel sections in foo()
12691 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
12695 #pragma omp parallel sections in foo()
12697 #pragma omp target teams // OK in foo()
12700 #pragma omp parallel sections in foo()
12702 #pragma omp target teams distribute // OK in foo()
12706 #pragma omp parallel sections in foo()
12708 #pragma omp target teams distribute parallel for // OK in foo()
12712 #pragma omp parallel sections in foo()
12714 #pragma omp target teams distribute parallel for simd // OK in foo()
12718 #pragma omp parallel sections in foo()
12720 #pragma omp target teams distribute simd // OK in foo()
12726 #pragma omp task in foo()
12727 #pragma omp for // expected-error {{region cannot be closely nested inside 'task' region; perhaps y… in foo()
12730 #pragma omp task in foo()
12731 #pragma omp simd in foo()
12734 #pragma omp task in foo()
12735 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'task' region; perh… in foo()
12738 #pragma omp task in foo()
12739 #pragma omp sections // expected-error {{region cannot be closely nested inside 'task' region; perh… in foo()
12743 #pragma omp task in foo()
12744 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
12748 #pragma omp task in foo()
12749 #pragma omp single // expected-error {{region cannot be closely nested inside 'task' region; perhap… in foo()
12751 #pragma omp task in foo()
12752 #pragma omp master // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
12754 #pragma omp task in foo()
12755 #pragma omp critical in foo()
12757 #pragma omp task in foo()
12758 #pragma omp parallel for in foo()
12761 #pragma omp task in foo()
12762 #pragma omp parallel for simd in foo()
12765 #pragma omp task in foo()
12766 #pragma omp parallel sections in foo()
12770 #pragma omp task in foo()
12771 #pragma omp task in foo()
12775 #pragma omp task in foo()
12777 #pragma omp taskyield in foo()
12780 #pragma omp task in foo()
12782 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
12785 #pragma omp task in foo()
12787 #pragma omp scan // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
12790 #pragma omp task in foo()
12792 #pragma omp taskwait in foo()
12795 #pragma omp task in foo()
12797 #pragma omp flush in foo()
12800 #pragma omp task in foo()
12802 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'task' region; perha… in foo()
12805 #pragma omp task in foo()
12807 #pragma omp atomic in foo()
12810 #pragma omp task in foo()
12812 #pragma omp target in foo()
12815 #pragma omp task in foo()
12817 #pragma omp target parallel in foo()
12820 #pragma omp task in foo()
12821 #pragma omp target parallel for in foo()
12824 #pragma omp task in foo()
12826 #pragma omp target enter data map(to: a) in foo()
12829 #pragma omp task in foo()
12831 #pragma omp target exit data map(from: a) in foo()
12834 #pragma omp task in foo()
12836 #pragma omp teams // expected-error {{region cannot be closely nested inside 'task' region; perhaps… in foo()
12839 #pragma omp task in foo()
12841 #pragma omp taskloop in foo()
12845 #pragma omp task in foo()
12847 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'task' region; pe… in foo()
12851 #pragma omp task in foo()
12853 #pragma omp target update to(a) in foo()
12856 #pragma omp task in foo()
12858 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tas… in foo()
12862 #pragma omp task in foo()
12864 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
12868 #pragma omp task in foo()
12870 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'task' regio… in foo()
12874 #pragma omp task in foo()
12876 #pragma omp target simd // OK in foo()
12880 #pragma omp task in foo()
12882 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'task' regi… in foo()
12886 #pragma omp task in foo()
12888 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'task'… in foo()
12892 #pragma omp task in foo()
12894 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
12898 #pragma omp task in foo()
12900 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
12904 #pragma omp task in foo()
12906 #pragma omp target teams // OK in foo()
12909 #pragma omp task in foo()
12911 #pragma omp target teams distribute // OK in foo()
12915 #pragma omp task in foo()
12917 #pragma omp target teams distribute parallel for // OK in foo()
12921 #pragma omp task in foo()
12923 #pragma omp target teams distribute parallel for simd // OK in foo()
12927 #pragma omp task in foo()
12929 #pragma omp target teams distribute simd // OK in foo()
12935 #pragma omp atomic in foo()
12939 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
12943 #pragma omp atomic in foo()
12947 #pragma omp simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
12951 #pragma omp atomic in foo()
12955 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
12959 #pragma omp atomic in foo()
12963 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
12967 #pragma omp atomic in foo()
12971 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
12976 #pragma omp atomic in foo()
12980 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
12985 #pragma omp atomic in foo()
12989 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
12994 #pragma omp atomic in foo()
12998 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13003 #pragma omp atomic in foo()
13007 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
13012 #pragma omp atomic in foo()
13016 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic r… in foo()
13020 #pragma omp atomic in foo()
13024 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside an ato… in foo()
13028 #pragma omp atomic in foo()
13032 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside an ato… in foo()
13037 #pragma omp atomic in foo()
13041 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13046 #pragma omp atomic in foo()
13050 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside an atomic regi… in foo()
13053 #pragma omp atomic in foo()
13057 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
13060 #pragma omp atomic in foo()
13064 #pragma omp scan // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13067 #pragma omp atomic in foo()
13071 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
13074 #pragma omp atomic in foo()
13078 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13081 #pragma omp atomic in foo()
13085 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
13088 #pragma omp atomic in foo()
13092 #pragma omp atomic // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13095 #pragma omp atomic in foo()
13099 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13102 #pragma omp atomic in foo()
13106 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside an atomi… in foo()
13109 #pragma omp atomic in foo()
13113 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside an a… in foo()
13117 #pragma omp atomic in foo()
13121 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
13124 #pragma omp atomic in foo()
13128 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
13131 #pragma omp atomic in foo()
13135 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13138 #pragma omp atomic in foo()
13142 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
13146 #pragma omp atomic in foo()
13150 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside an atomic reg… in foo()
13154 #pragma omp atomic in foo()
13158 #pragma omp target update // expected-error {{OpenMP constructs may not be nested inside an atomic … in foo()
13160 #pragma omp atomic in foo()
13164 #pragma omp distribute parallel for// expected-error {{OpenMP constructs may not be nested inside a… in foo()
13168 #pragma omp atomic in foo()
13172 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
13176 #pragma omp atomic in foo()
13180 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside an atomi… in foo()
13184 #pragma omp atomic in foo()
13188 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside an atomic re… in foo()
13192 #pragma omp atomic in foo()
13196 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside an atom… in foo()
13200 #pragma omp atomic in foo()
13204 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside an… in foo()
13208 #pragma omp atomic in foo()
13212 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
13216 #pragma omp atomic in foo()
13220 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
13224 #pragma omp atomic in foo()
13228 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside an atomic r… in foo()
13231 #pragma omp atomic in foo()
13235 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
13239 #pragma omp atomic in foo()
13243 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
13247 #pragma omp atomic in foo()
13251 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
13255 #pragma omp atomic in foo()
13259 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
13265 #pragma omp target in foo()
13266 #pragma omp parallel in foo()
13268 #pragma omp target in foo()
13269 #pragma omp for in foo()
13272 #pragma omp target in foo()
13273 #pragma omp simd in foo()
13276 #pragma omp target in foo()
13277 #pragma omp for simd in foo()
13280 #pragma omp target in foo()
13281 #pragma omp sections in foo()
13285 #pragma omp target in foo()
13286 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
13290 #pragma omp target in foo()
13291 #pragma omp single in foo()
13294 #pragma omp target in foo()
13295 #pragma omp master in foo()
13299 #pragma omp target in foo()
13300 #pragma omp critical in foo()
13304 #pragma omp target in foo()
13305 #pragma omp parallel for in foo()
13308 #pragma omp target in foo()
13309 #pragma omp parallel for simd in foo()
13312 #pragma omp target in foo()
13313 #pragma omp parallel sections in foo()
13317 #pragma omp target in foo()
13318 #pragma omp task in foo()
13322 #pragma omp target in foo()
13324 #pragma omp taskyield in foo()
13327 #pragma omp target in foo()
13329 #pragma omp barrier in foo()
13332 #pragma omp target in foo()
13334 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target' region; perhap… in foo()
13337 #pragma omp target in foo()
13339 #pragma omp taskwait in foo()
13342 #pragma omp target in foo()
13344 #pragma omp flush in foo()
13347 #pragma omp target in foo()
13349 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target' region; per… in foo()
13352 #pragma omp target in foo()
13354 #pragma omp atomic in foo()
13357 #pragma omp target in foo()
13359 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
13362 #pragma omp target in foo()
13364 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
13367 #pragma omp target in foo()
13368 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
13371 #pragma omp target in foo()
13373 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
13375 #pragma omp target in foo()
13377 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
13379 #pragma omp target in foo()
13381 #pragma omp teams in foo()
13384 #pragma omp target // expected-error {{target construct with nested teams region contains statement… in foo()
13386 #pragma omp teams // expected-note {{directive outside teams construct here}} in foo()
13388 #pragma omp teams // expected-note {{nested teams construct here}} in foo()
13391 #pragma omp target // expected-error {{target construct with nested teams region contains statement… in foo()
13394 #pragma omp teams // expected-note {{nested teams construct here}} in foo()
13397 #pragma omp target in foo()
13399 #pragma omp taskloop in foo()
13403 #pragma omp target in foo()
13405 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target' region; … in foo()
13409 #pragma omp atomic in foo()
13413 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside an a… in foo()
13416 #pragma omp target in foo()
13418 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
13422 #pragma omp target in foo()
13424 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
13428 #pragma omp target in foo()
13430 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target' reg… in foo()
13434 #pragma omp target in foo()
13436 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
13440 #pragma omp target in foo()
13442 #pragma omp teams distribute // OK in foo()
13446 #pragma omp target in foo()
13448 #pragma omp teams distribute simd // OK in foo()
13452 #pragma omp target in foo()
13454 #pragma omp teams distribute parallel for simd // OK in foo()
13458 #pragma omp target in foo()
13460 #pragma omp teams distribute parallel for // OK in foo()
13464 #pragma omp target in foo()
13466 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
13469 #pragma omp target in foo()
13471 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
13475 #pragma omp target in foo()
13477 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
13481 #pragma omp target in foo()
13483 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
13487 #pragma omp target in foo()
13489 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
13495 #pragma omp target parallel in foo()
13496 #pragma omp parallel in foo()
13498 #pragma omp target parallel in foo()
13499 #pragma omp for in foo()
13502 #pragma omp target parallel in foo()
13503 #pragma omp simd in foo()
13506 #pragma omp target parallel in foo()
13507 #pragma omp for simd in foo()
13510 #pragma omp target parallel in foo()
13511 #pragma omp sections in foo()
13515 #pragma omp target parallel in foo()
13516 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
13520 #pragma omp target parallel in foo()
13521 #pragma omp single in foo()
13524 #pragma omp target parallel in foo()
13525 #pragma omp master in foo()
13529 #pragma omp target parallel in foo()
13530 #pragma omp critical in foo()
13534 #pragma omp target parallel in foo()
13535 #pragma omp parallel for in foo()
13538 #pragma omp target parallel in foo()
13539 #pragma omp parallel for simd in foo()
13542 #pragma omp target parallel in foo()
13543 #pragma omp parallel sections in foo()
13547 #pragma omp target parallel in foo()
13548 #pragma omp task in foo()
13552 #pragma omp target parallel in foo()
13554 #pragma omp taskyield in foo()
13557 #pragma omp target parallel in foo()
13559 #pragma omp barrier in foo()
13562 #pragma omp target parallel in foo()
13564 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel' regio… in foo()
13567 #pragma omp target parallel in foo()
13569 #pragma omp taskwait in foo()
13572 #pragma omp target parallel in foo()
13574 #pragma omp flush in foo()
13577 #pragma omp target parallel in foo()
13579 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel' re… in foo()
13582 #pragma omp target parallel in foo()
13584 #pragma omp atomic in foo()
13587 #pragma omp target parallel in foo()
13589 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel' region}} in foo()
13592 #pragma omp target parallel in foo()
13594 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel' re… in foo()
13597 #pragma omp target parallel in foo()
13598 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel… in foo()
13601 #pragma omp target parallel in foo()
13603 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' regi… in foo()
13606 #pragma omp target parallel in foo()
13609 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' reg… in foo()
13612 #pragma omp target parallel in foo()
13614 #pragma omp taskloop in foo()
13618 #pragma omp target parallel in foo()
13620 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel'… in foo()
13624 #pragma omp target parallel in foo()
13626 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
13628 #pragma omp target parallel in foo()
13630 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
13632 #pragma omp target parallel in foo()
13634 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel… in foo()
13636 #pragma omp target parallel in foo()
13638 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
13642 #pragma omp target parallel in foo()
13644 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
13648 #pragma omp target parallel in foo()
13650 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target para… in foo()
13654 #pragma omp target parallel in foo()
13656 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel' regio}} in foo()
13660 #pragma omp target parallel in foo()
13662 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target par… in foo()
13666 #pragma omp target parallel in foo()
13668 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
13672 #pragma omp target parallel in foo()
13674 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
13678 #pragma omp target parallel in foo()
13680 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
13684 #pragma omp target parallel in foo()
13686 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel' regio… in foo()
13689 #pragma omp target parallel in foo()
13691 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target para… in foo()
13695 #pragma omp target parallel in foo()
13697 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
13701 #pragma omp target parallel in foo()
13703 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
13707 #pragma omp target parallel in foo()
13709 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
13715 #pragma omp target parallel for in foo()
13717 #pragma omp for // expected-error {{region cannot be closely nested inside 'target parallel for' re… in foo()
13721 #pragma omp target parallel for in foo()
13723 #pragma omp simd in foo()
13727 #pragma omp target parallel for in foo()
13729 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target parallel fo… in foo()
13733 #pragma omp target parallel for in foo()
13735 #pragma omp parallel in foo()
13739 #pragma omp target parallel for in foo()
13741 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target parallel fo… in foo()
13746 #pragma omp target parallel for in foo()
13748 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
13753 #pragma omp target parallel for in foo()
13755 #pragma omp single // expected-error {{region cannot be closely nested inside 'target parallel for'… in foo()
13761 #pragma omp target parallel for in foo()
13763 #pragma omp master // expected-error {{region cannot be closely nested inside 'target parallel for'… in foo()
13769 #pragma omp target parallel for in foo()
13771 #pragma omp critical in foo()
13777 #pragma omp target parallel for in foo()
13779 #pragma omp parallel in foo()
13781 #pragma omp single // OK in foo()
13785 #pragma omp for // OK in foo()
13788 #pragma omp for simd // OK in foo()
13791 #pragma omp sections // OK in foo()
13797 #pragma omp target parallel for in foo()
13799 #pragma omp parallel for in foo()
13803 #pragma omp target parallel for in foo()
13805 #pragma omp parallel for simd in foo()
13809 #pragma omp target parallel for in foo()
13811 #pragma omp parallel sections in foo()
13816 #pragma omp target parallel for in foo()
13818 #pragma omp task in foo()
13823 #pragma omp target parallel for in foo()
13825 #pragma omp taskyield in foo()
13828 #pragma omp target parallel for in foo()
13830 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target parallel for… in foo()
13833 #pragma omp target parallel for in foo()
13835 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel for' r… in foo()
13838 #pragma omp target parallel for in foo()
13840 #pragma omp taskwait in foo()
13843 #pragma omp target parallel for in foo()
13845 #pragma omp flush in foo()
13848 #pragma omp target parallel for in foo()
13850 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel for… in foo()
13853 #pragma omp target parallel for ordered in foo()
13855 #pragma omp ordered // OK in foo()
13858 #pragma omp target parallel for in foo()
13860 #pragma omp atomic in foo()
13863 #pragma omp target parallel for in foo()
13865 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel for' region}} in foo()
13868 #pragma omp target parallel for in foo()
13870 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel for… in foo()
13873 #pragma omp target parallel for in foo()
13875 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel… in foo()
13879 #pragma omp target parallel for in foo()
13881 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
13884 #pragma omp target parallel for in foo()
13886 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
13889 #pragma omp target parallel for in foo()
13891 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel for' … in foo()
13894 #pragma omp target parallel for in foo()
13896 #pragma omp taskloop in foo()
13900 #pragma omp target parallel for in foo()
13902 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel … in foo()
13906 #pragma omp target parallel for in foo()
13908 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel… in foo()
13911 #pragma omp target parallel for in foo()
13913 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
13917 #pragma omp target parallel for in foo()
13919 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
13923 #pragma omp target parallel for in foo()
13925 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target para… in foo()
13929 #pragma omp target parallel for in foo()
13931 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel for' re… in foo()
13935 #pragma omp target parallel for in foo()
13937 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target par… in foo()
13941 #pragma omp target parallel for in foo()
13943 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
13947 #pragma omp target parallel for in foo()
13949 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
13953 #pragma omp target parallel for in foo()
13955 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
13959 #pragma omp target parallel for in foo()
13961 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel for' r… in foo()
13964 #pragma omp target parallel for in foo()
13966 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target para… in foo()
13970 #pragma omp target parallel for in foo()
13972 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
13976 #pragma omp target parallel for in foo()
13978 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
13982 #pragma omp target parallel for in foo()
13984 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
13990 #pragma omp target in foo()
13991 #pragma omp teams in foo()
13992 #pragma omp parallel in foo()
13994 #pragma omp target in foo()
13995 #pragma omp teams in foo()
13996 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams' region; perhaps … in foo()
13999 #pragma omp target in foo()
14000 #pragma omp teams in foo()
14001 #pragma omp simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
14004 #pragma omp target in foo()
14005 #pragma omp teams in foo()
14006 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
14009 #pragma omp target in foo()
14010 #pragma omp teams in foo()
14011 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
14015 #pragma omp target in foo()
14016 #pragma omp teams in foo()
14017 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
14021 #pragma omp target in foo()
14022 #pragma omp teams in foo()
14023 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams' region; perha… in foo()
14026 #pragma omp target in foo()
14027 #pragma omp teams in foo()
14028 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams' region; perha… in foo()
14032 #pragma omp target in foo()
14033 #pragma omp teams in foo()
14034 #pragma omp critical // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
14038 #pragma omp target in foo()
14039 #pragma omp teams in foo()
14040 #pragma omp parallel for in foo()
14043 #pragma omp target in foo()
14044 #pragma omp teams in foo()
14045 #pragma omp parallel for simd in foo()
14048 #pragma omp target in foo()
14049 #pragma omp teams in foo()
14050 #pragma omp parallel sections in foo()
14054 #pragma omp target in foo()
14055 #pragma omp teams in foo()
14056 #pragma omp task // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
14060 #pragma omp target in foo()
14061 #pragma omp teams in foo()
14063 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'teams' region; pe… in foo()
14066 #pragma omp target in foo()
14067 #pragma omp teams in foo()
14069 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams' region; perh… in foo()
14072 #pragma omp target in foo()
14073 #pragma omp teams in foo()
14075 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
14078 #pragma omp target in foo()
14079 #pragma omp teams in foo()
14081 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
14084 #pragma omp target in foo()
14085 #pragma omp teams in foo()
14087 #pragma omp flush // expected-error {{region cannot be closely nested inside 'teams' region; perhap… in foo()
14090 #pragma omp target in foo()
14091 #pragma omp teams in foo()
14093 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams' region; perh… in foo()
14096 #pragma omp target in foo()
14097 #pragma omp teams in foo()
14099 #pragma omp atomic // expected-error {{region cannot be closely nested inside 'teams' region; perha… in foo()
14102 #pragma omp target in foo()
14103 #pragma omp teams in foo()
14105 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
14108 #pragma omp target in foo()
14109 #pragma omp teams in foo()
14111 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
14114 #pragma omp target in foo()
14115 #pragma omp teams in foo()
14116 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
14119 #pragma omp target in foo()
14120 #pragma omp teams in foo()
14122 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
14124 #pragma omp target in foo()
14125 #pragma omp teams in foo()
14127 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
14129 #pragma omp target in foo()
14130 #pragma omp teams in foo()
14132 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams' region; perhap… in foo()
14135 #pragma omp target in foo()
14136 #pragma omp teams in foo()
14138 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
14142 #pragma omp target in foo()
14143 #pragma omp teams in foo()
14144 #pragma omp distribute in foo()
14147 #pragma omp target in foo()
14148 #pragma omp teams in foo()
14149 #pragma omp distribute in foo()
14152 #pragma omp distribute in foo()
14155 #pragma omp target in foo()
14156 #pragma omp teams in foo()
14158 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
14161 #pragma omp target in foo()
14162 #pragma omp teams in foo()
14163 #pragma omp distribute parallel for in foo()
14166 #pragma omp target in foo()
14167 #pragma omp teams in foo()
14169 #pragma omp distribute parallel for in foo()
14172 #pragma omp distribute parallel for in foo()
14176 #pragma omp target in foo()
14177 #pragma omp teams in foo()
14179 #pragma omp distribute parallel for simd in foo()
14182 #pragma omp distribute parallel for simd in foo()
14186 #pragma omp target in foo()
14187 #pragma omp teams in foo()
14189 #pragma omp distribute simd in foo()
14192 #pragma omp distribute simd in foo()
14196 #pragma omp target in foo()
14197 #pragma omp teams in foo()
14199 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
14203 #pragma omp target in foo()
14204 #pragma omp teams in foo()
14206 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams' reg… in foo()
14210 #pragma omp target in foo()
14211 #pragma omp teams in foo()
14213 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
14217 #pragma omp target in foo()
14218 #pragma omp teams in foo()
14220 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
14224 #pragma omp target in foo()
14225 #pragma omp teams in foo()
14227 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
14231 #pragma omp target in foo()
14232 #pragma omp teams in foo()
14234 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
14237 #pragma omp target in foo()
14238 #pragma omp teams in foo()
14240 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
14244 #pragma omp target in foo()
14245 #pragma omp teams in foo()
14247 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
14251 #pragma omp target in foo()
14252 #pragma omp teams in foo()
14254 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
14258 #pragma omp target in foo()
14259 #pragma omp teams in foo()
14261 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
14267 #pragma omp taskloop in foo()
14269 #pragma omp for // expected-error {{region cannot be closely nested inside 'taskloop' region; perha… in foo()
14273 #pragma omp taskloop in foo()
14275 #pragma omp simd in foo()
14279 #pragma omp taskloop in foo()
14281 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'taskloop' region; … in foo()
14285 #pragma omp taskloop in foo()
14287 #pragma omp parallel in foo()
14291 #pragma omp taskloop in foo()
14293 #pragma omp sections // expected-error {{region cannot be closely nested inside 'taskloop' region; … in foo()
14298 #pragma omp taskloop in foo()
14300 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
14305 #pragma omp taskloop in foo()
14307 #pragma omp single // expected-error {{region cannot be closely nested inside 'taskloop' region; pe… in foo()
14313 #pragma omp taskloop in foo()
14315 #pragma omp master // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
14320 #pragma omp taskloop in foo()
14322 #pragma omp critical in foo()
14327 #pragma omp taskloop in foo()
14329 #pragma omp parallel in foo()
14331 #pragma omp single // OK in foo()
14335 #pragma omp for // OK in foo()
14338 #pragma omp sections // OK in foo()
14344 #pragma omp taskloop in foo()
14346 #pragma omp parallel for in foo()
14350 #pragma omp taskloop in foo()
14352 #pragma omp parallel for simd in foo()
14356 #pragma omp taskloop in foo()
14358 #pragma omp parallel sections in foo()
14363 #pragma omp taskloop in foo()
14365 #pragma omp task in foo()
14370 #pragma omp taskloop in foo()
14372 #pragma omp taskyield in foo()
14375 #pragma omp taskloop in foo()
14377 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
14380 #pragma omp taskloop in foo()
14382 #pragma omp scan // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
14385 #pragma omp taskloop in foo()
14387 #pragma omp taskwait in foo()
14390 #pragma omp taskloop in foo()
14392 #pragma omp flush in foo()
14395 #pragma omp taskloop in foo()
14397 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'taskloop' region; p… in foo()
14400 #pragma omp taskloop in foo()
14402 #pragma omp atomic in foo()
14405 #pragma omp taskloop in foo()
14407 #pragma omp target in foo()
14410 #pragma omp taskloop in foo()
14412 #pragma omp target parallel in foo()
14415 #pragma omp taskloop in foo()
14417 #pragma omp target parallel for in foo()
14421 #pragma omp taskloop in foo()
14423 #pragma omp target enter data map(to: a) in foo()
14426 #pragma omp taskloop in foo()
14428 #pragma omp target exit data map(from: a) in foo()
14431 #pragma omp taskloop in foo()
14433 #pragma omp teams // expected-error {{region cannot be closely nested inside 'taskloop' region; per… in foo()
14436 #pragma omp taskloop in foo()
14438 #pragma omp taskloop in foo()
14442 #pragma omp taskloop in foo()
14444 #pragma omp target update to(a) in foo()
14447 #pragma omp taskloop in foo()
14449 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'taskloop' region… in foo()
14453 #pragma omp taskloop in foo()
14455 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tas… in foo()
14459 #pragma omp taskloop in foo()
14461 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
14465 #pragma omp taskloop in foo()
14467 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'taskloop' r… in foo()
14471 #pragma omp taskloop in foo()
14473 #pragma omp target simd // OK in foo()
14477 #pragma omp taskloop in foo()
14479 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'taskloop' … in foo()
14483 #pragma omp taskloop in foo()
14485 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'taskl… in foo()
14489 #pragma omp taskloop in foo()
14491 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
14495 #pragma omp taskloop in foo()
14497 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
14501 #pragma omp taskloop in foo()
14503 #pragma omp target teams // OK in foo()
14506 #pragma omp taskloop in foo()
14508 #pragma omp target teams distribute // OK in foo()
14512 #pragma omp taskloop in foo()
14514 #pragma omp target teams distribute parallel for // OK in foo()
14518 #pragma omp taskloop in foo()
14520 #pragma omp target teams distribute parallel for simd // OK in foo()
14524 #pragma omp taskloop in foo()
14526 #pragma omp target teams distribute simd // OK in foo()
14532 #pragma omp target in foo()
14533 #pragma omp teams in foo()
14534 #pragma omp distribute in foo()
14536 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute' regi… in foo()
14540 #pragma omp target in foo()
14541 #pragma omp teams in foo()
14542 #pragma omp distribute in foo()
14544 #pragma omp for in foo()
14548 #pragma omp target in foo()
14549 #pragma omp teams in foo()
14550 #pragma omp distribute in foo()
14552 #pragma omp simd in foo()
14556 #pragma omp target in foo()
14557 #pragma omp teams in foo()
14558 #pragma omp distribute in foo()
14560 #pragma omp for simd in foo()
14564 #pragma omp target in foo()
14565 #pragma omp teams in foo()
14566 #pragma omp distribute in foo()
14568 #pragma omp parallel in foo()
14572 #pragma omp target in foo()
14573 #pragma omp teams in foo()
14574 #pragma omp distribute in foo()
14576 #pragma omp sections in foo()
14581 #pragma omp target in foo()
14582 #pragma omp teams in foo()
14583 #pragma omp distribute in foo()
14585 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
14590 #pragma omp target in foo()
14591 #pragma omp teams in foo()
14592 #pragma omp distribute in foo()
14594 #pragma omp single in foo()
14599 #pragma omp target in foo()
14600 #pragma omp teams in foo()
14601 #pragma omp distribute in foo()
14603 #pragma omp master in foo()
14608 #pragma omp target in foo()
14609 #pragma omp teams in foo()
14610 #pragma omp distribute in foo()
14612 #pragma omp critical in foo()
14617 #pragma omp target in foo()
14618 #pragma omp teams in foo()
14619 #pragma omp distribute in foo()
14621 #pragma omp parallel in foo()
14623 #pragma omp single in foo()
14629 #pragma omp target in foo()
14630 #pragma omp teams in foo()
14631 #pragma omp distribute in foo()
14633 #pragma omp parallel for in foo()
14637 #pragma omp target in foo()
14638 #pragma omp teams in foo()
14639 #pragma omp distribute in foo()
14641 #pragma omp parallel for simd in foo()
14645 #pragma omp target in foo()
14646 #pragma omp teams in foo()
14647 #pragma omp distribute in foo()
14649 #pragma omp parallel sections in foo()
14654 #pragma omp target in foo()
14655 #pragma omp teams in foo()
14656 #pragma omp distribute in foo()
14658 #pragma omp task in foo()
14663 #pragma omp target in foo()
14664 #pragma omp teams in foo()
14665 #pragma omp distribute in foo()
14667 #pragma omp taskyield in foo()
14670 #pragma omp target in foo()
14671 #pragma omp teams in foo()
14672 #pragma omp distribute in foo()
14674 #pragma omp barrier in foo()
14677 #pragma omp target in foo()
14678 #pragma omp teams in foo()
14679 #pragma omp distribute in foo()
14681 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute' region; pe… in foo()
14684 #pragma omp target in foo()
14685 #pragma omp teams in foo()
14686 #pragma omp distribute in foo()
14688 #pragma omp taskwait in foo()
14691 #pragma omp target in foo()
14692 #pragma omp teams in foo()
14693 #pragma omp distribute in foo()
14695 #pragma omp flush in foo()
14698 #pragma omp target in foo()
14699 #pragma omp teams in foo()
14700 #pragma omp distribute in foo()
14702 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute' region;… in foo()
14705 #pragma omp target in foo()
14706 #pragma omp teams in foo()
14707 #pragma omp distribute in foo()
14709 #pragma omp atomic in foo()
14712 #pragma omp target in foo()
14713 #pragma omp teams in foo()
14714 #pragma omp distribute in foo()
14716 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
14719 #pragma omp target in foo()
14720 #pragma omp teams in foo()
14721 #pragma omp distribute in foo()
14723 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
14726 #pragma omp target in foo()
14727 #pragma omp teams in foo()
14728 #pragma omp distribute in foo()
14730 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
14734 #pragma omp target in foo()
14735 #pragma omp teams in foo()
14736 #pragma omp distribute in foo()
14738 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute' region; p… in foo()
14741 #pragma omp target in foo()
14742 #pragma omp teams in foo()
14743 #pragma omp distribute in foo()
14745 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
14748 #pragma omp target in foo()
14749 #pragma omp teams in foo()
14750 #pragma omp distribute in foo()
14752 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
14755 #pragma omp target in foo()
14756 #pragma omp teams in foo()
14757 #pragma omp distribute in foo()
14759 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
14762 #pragma omp target in foo()
14763 #pragma omp teams in foo()
14764 #pragma omp distribute in foo()
14766 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'dis… in foo()
14770 #pragma omp target in foo()
14771 #pragma omp teams in foo()
14772 #pragma omp distribute in foo()
14774 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
14778 #pragma omp target in foo()
14779 #pragma omp teams in foo()
14780 #pragma omp distribute in foo()
14782 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'distribute'… in foo()
14786 #pragma omp target in foo()
14787 #pragma omp teams in foo()
14788 #pragma omp distribute in foo()
14790 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
14794 #pragma omp target in foo()
14795 #pragma omp teams in foo()
14796 #pragma omp distribute in foo()
14798 #pragma omp target parallel for simd // expected-error {{region cannot be nested inside 'target' re… in foo()
14802 #pragma omp target in foo()
14803 #pragma omp teams in foo()
14804 #pragma omp distribute in foo()
14806 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
14810 #pragma omp target in foo()
14811 #pragma omp teams in foo()
14812 #pragma omp distribute in foo()
14814 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
14818 #pragma omp target in foo()
14819 #pragma omp teams in foo()
14820 #pragma omp distribute in foo()
14822 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
14826 #pragma omp target in foo()
14827 #pragma omp teams in foo()
14828 #pragma omp distribute in foo()
14830 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
14834 #pragma omp target in foo()
14835 #pragma omp teams in foo()
14836 #pragma omp distribute in foo()
14838 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
14842 #pragma omp target in foo()
14843 #pragma omp teams in foo()
14844 #pragma omp distribute in foo()
14846 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
14852 #pragma omp target in foo()
14853 #pragma omp teams in foo()
14854 #pragma omp distribute parallel for in foo()
14856 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'dis… in foo()
14861 #pragma omp target in foo()
14862 #pragma omp teams in foo()
14863 #pragma omp distribute parallel for in foo()
14865 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute paral… in foo()
14869 #pragma omp target in foo()
14870 #pragma omp teams in foo()
14871 #pragma omp distribute parallel for in foo()
14873 #pragma omp for // expected-error {{region cannot be closely nested inside 'distribute parallel for… in foo()
14877 #pragma omp target in foo()
14878 #pragma omp teams in foo()
14879 #pragma omp distribute parallel for in foo()
14881 #pragma omp simd in foo()
14885 #pragma omp target in foo()
14886 #pragma omp teams in foo()
14887 #pragma omp distribute parallel for in foo()
14889 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'distribute paralle… in foo()
14893 #pragma omp target in foo()
14894 #pragma omp teams in foo()
14895 #pragma omp distribute parallel for in foo()
14897 #pragma omp parallel in foo()
14901 #pragma omp target in foo()
14902 #pragma omp teams in foo()
14903 #pragma omp distribute parallel for in foo()
14905 #pragma omp sections // expected-error {{region cannot be closely nested inside 'distribute paralle… in foo()
14910 #pragma omp target in foo()
14911 #pragma omp teams in foo()
14912 #pragma omp distribute parallel for in foo()
14914 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
14919 #pragma omp target in foo()
14920 #pragma omp teams in foo()
14921 #pragma omp distribute parallel for in foo()
14923 #pragma omp single // expected-error {{region cannot be closely nested inside 'distribute parallel … in foo()
14928 #pragma omp target in foo()
14929 #pragma omp teams in foo()
14930 #pragma omp distribute parallel for in foo()
14932 #pragma omp master // expected-error {{region cannot be closely nested inside 'distribute parallel … in foo()
14937 #pragma omp target in foo()
14938 #pragma omp teams in foo()
14939 #pragma omp distribute parallel for in foo()
14941 #pragma omp critical in foo()
14946 #pragma omp target in foo()
14947 #pragma omp teams in foo()
14948 #pragma omp distribute parallel for in foo()
14950 #pragma omp parallel in foo()
14952 #pragma omp single in foo()
14958 #pragma omp target in foo()
14959 #pragma omp teams in foo()
14960 #pragma omp distribute parallel for in foo()
14962 #pragma omp parallel for in foo()
14966 #pragma omp target in foo()
14967 #pragma omp teams in foo()
14968 #pragma omp distribute parallel for in foo()
14970 #pragma omp parallel for simd in foo()
14974 #pragma omp target in foo()
14975 #pragma omp teams in foo()
14976 #pragma omp distribute parallel for in foo()
14978 #pragma omp parallel sections in foo()
14983 #pragma omp target in foo()
14984 #pragma omp teams in foo()
14985 #pragma omp distribute parallel for in foo()
14987 #pragma omp task in foo()
14992 #pragma omp target in foo()
14993 #pragma omp teams in foo()
14994 #pragma omp distribute parallel for in foo()
14996 #pragma omp taskyield in foo()
14999 #pragma omp target in foo()
15000 #pragma omp teams in foo()
15001 #pragma omp distribute parallel for in foo()
15003 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'distribute parallel… in foo()
15006 #pragma omp target in foo()
15007 #pragma omp teams in foo()
15008 #pragma omp distribute parallel for in foo()
15010 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute parallel fo… in foo()
15013 #pragma omp target in foo()
15014 #pragma omp teams in foo()
15015 #pragma omp distribute parallel for in foo()
15017 #pragma omp taskwait in foo()
15020 #pragma omp target in foo()
15021 #pragma omp teams in foo()
15022 #pragma omp distribute parallel for in foo()
15024 #pragma omp flush in foo()
15027 #pragma omp target in foo()
15028 #pragma omp teams in foo()
15029 #pragma omp distribute parallel for in foo()
15031 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute parallel… in foo()
15034 #pragma omp target in foo()
15035 #pragma omp teams in foo()
15036 #pragma omp distribute parallel for in foo()
15038 #pragma omp atomic in foo()
15041 #pragma omp target in foo()
15042 #pragma omp teams in foo()
15043 #pragma omp distribute parallel for in foo()
15045 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
15048 #pragma omp target in foo()
15049 #pragma omp teams in foo()
15050 #pragma omp distribute parallel for in foo()
15052 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
15055 #pragma omp target in foo()
15056 #pragma omp teams in foo()
15057 #pragma omp distribute parallel for in foo()
15059 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
15063 #pragma omp target in foo()
15064 #pragma omp teams in foo()
15065 #pragma omp distribute parallel for in foo()
15067 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute parallel f… in foo()
15070 #pragma omp target in foo()
15071 #pragma omp teams in foo()
15072 #pragma omp distribute parallel for in foo()
15074 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
15077 #pragma omp target in foo()
15078 #pragma omp teams in foo()
15079 #pragma omp distribute parallel for in foo()
15081 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
15084 #pragma omp target in foo()
15085 #pragma omp teams in foo()
15086 #pragma omp distribute parallel for in foo()
15088 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
15091 #pragma omp target in foo()
15092 #pragma omp teams in foo()
15093 #pragma omp distribute parallel for in foo()
15095 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'distribute … in foo()
15099 #pragma omp target in foo()
15100 #pragma omp teams in foo()
15101 #pragma omp distribute parallel for in foo()
15103 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
15107 #pragma omp target in foo()
15108 #pragma omp teams in foo()
15109 #pragma omp distribute parallel for in foo()
15111 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'distribute… in foo()
15115 #pragma omp target in foo()
15116 #pragma omp teams in foo()
15117 #pragma omp distribute parallel for in foo()
15119 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'distr… in foo()
15123 #pragma omp target in foo()
15124 #pragma omp teams in foo()
15125 #pragma omp distribute parallel for in foo()
15127 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
15131 #pragma omp target in foo()
15132 #pragma omp teams in foo()
15133 #pragma omp distribute parallel for in foo()
15135 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
15139 #pragma omp target in foo()
15140 #pragma omp teams in foo()
15141 #pragma omp distribute parallel for in foo()
15143 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
15146 #pragma omp target in foo()
15147 #pragma omp teams in foo()
15148 #pragma omp distribute parallel for in foo()
15150 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
15154 #pragma omp target in foo()
15155 #pragma omp teams in foo()
15156 #pragma omp distribute parallel for in foo()
15158 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
15162 #pragma omp target in foo()
15163 #pragma omp teams in foo()
15164 #pragma omp distribute parallel for in foo()
15166 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
15170 #pragma omp target in foo()
15171 #pragma omp teams in foo()
15172 #pragma omp distribute parallel for in foo()
15174 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
15180 #pragma omp target in foo()
15181 #pragma omp teams in foo()
15182 #pragma omp distribute parallel for simd in foo()
15184 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
15188 #pragma omp target in foo()
15189 #pragma omp teams in foo()
15190 #pragma omp distribute parallel for simd in foo()
15192 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
15196 #pragma omp target in foo()
15197 #pragma omp teams in foo()
15198 #pragma omp distribute parallel for simd in foo()
15200 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15204 #pragma omp target in foo()
15205 #pragma omp teams in foo()
15206 #pragma omp distribute parallel for simd in foo()
15208 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
15212 #pragma omp target in foo()
15213 #pragma omp teams in foo()
15214 #pragma omp distribute parallel for simd in foo()
15216 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15220 #pragma omp target in foo()
15221 #pragma omp teams in foo()
15222 #pragma omp distribute parallel for simd in foo()
15224 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15228 #pragma omp target in foo()
15229 #pragma omp teams in foo()
15230 #pragma omp distribute parallel for simd in foo()
15232 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15237 #pragma omp target in foo()
15238 #pragma omp teams in foo()
15239 #pragma omp distribute parallel for simd in foo()
15241 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15246 #pragma omp target in foo()
15247 #pragma omp teams in foo()
15248 #pragma omp distribute parallel for simd in foo()
15250 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15255 #pragma omp target in foo()
15256 #pragma omp teams in foo()
15257 #pragma omp distribute parallel for simd in foo()
15259 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15264 #pragma omp target in foo()
15265 #pragma omp teams in foo()
15266 #pragma omp distribute parallel for simd in foo()
15268 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15273 #pragma omp target in foo()
15274 #pragma omp teams in foo()
15275 #pragma omp distribute parallel for simd in foo()
15277 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15279 #pragma omp single in foo()
15285 #pragma omp target in foo()
15286 #pragma omp teams in foo()
15287 #pragma omp distribute parallel for simd in foo()
15289 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
15293 #pragma omp target in foo()
15294 #pragma omp teams in foo()
15295 #pragma omp distribute parallel for simd in foo()
15297 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
15301 #pragma omp target in foo()
15302 #pragma omp teams in foo()
15303 #pragma omp distribute parallel for simd in foo()
15305 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
15310 #pragma omp target in foo()
15311 #pragma omp teams in foo()
15312 #pragma omp distribute parallel for simd in foo()
15314 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15319 #pragma omp target in foo()
15320 #pragma omp teams in foo()
15321 #pragma omp distribute parallel for simd in foo()
15323 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15326 #pragma omp target in foo()
15327 #pragma omp teams in foo()
15328 #pragma omp distribute parallel for simd in foo()
15330 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15333 #pragma omp target in foo()
15334 #pragma omp teams in foo()
15335 #pragma omp distribute parallel for simd in foo()
15337 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
15340 #pragma omp target in foo()
15341 #pragma omp teams in foo()
15342 #pragma omp distribute parallel for simd in foo()
15344 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15347 #pragma omp target in foo()
15348 #pragma omp teams in foo()
15349 #pragma omp distribute parallel for simd in foo()
15351 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15354 #pragma omp target in foo()
15355 #pragma omp teams in foo()
15356 #pragma omp distribute parallel for simd in foo()
15358 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15361 #pragma omp target in foo()
15362 #pragma omp teams in foo()
15363 #pragma omp distribute parallel for simd in foo()
15365 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15368 #pragma omp target in foo()
15369 #pragma omp teams in foo()
15370 #pragma omp distribute parallel for simd in foo()
15372 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15375 #pragma omp target in foo()
15376 #pragma omp teams in foo()
15377 #pragma omp distribute parallel for simd in foo()
15379 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
15382 #pragma omp target in foo()
15383 #pragma omp teams in foo()
15384 #pragma omp distribute parallel for simd in foo()
15386 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15389 #pragma omp target in foo()
15390 #pragma omp teams in foo()
15391 #pragma omp distribute parallel for simd in foo()
15393 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
15396 #pragma omp target in foo()
15397 #pragma omp teams in foo()
15398 #pragma omp distribute parallel for simd in foo()
15400 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
15403 #pragma omp target in foo()
15404 #pragma omp teams in foo()
15405 #pragma omp distribute parallel for simd in foo()
15407 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
15410 #pragma omp target in foo()
15411 #pragma omp teams in foo()
15412 #pragma omp distribute parallel for simd in foo()
15414 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
15418 #pragma omp target in foo()
15419 #pragma omp teams in foo()
15420 #pragma omp distribute parallel for simd in foo()
15422 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
15426 #pragma omp target in foo()
15427 #pragma omp teams in foo()
15428 #pragma omp distribute parallel for simd in foo()
15430 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
15434 #pragma omp target in foo()
15435 #pragma omp teams in foo()
15436 #pragma omp distribute parallel for simd in foo()
15438 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
15442 #pragma omp target in foo()
15443 #pragma omp teams in foo()
15444 #pragma omp distribute parallel for simd in foo()
15446 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
15450 #pragma omp target in foo()
15451 #pragma omp teams in foo()
15452 #pragma omp distribute parallel for simd in foo()
15454 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
15458 #pragma omp target in foo()
15459 #pragma omp teams in foo()
15460 #pragma omp distribute parallel for simd in foo()
15462 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
15465 #pragma omp target in foo()
15466 #pragma omp teams in foo()
15467 #pragma omp distribute parallel for simd in foo()
15469 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
15473 #pragma omp target in foo()
15474 #pragma omp teams in foo()
15475 #pragma omp distribute parallel for simd in foo()
15477 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
15481 #pragma omp target in foo()
15482 #pragma omp teams in foo()
15483 #pragma omp distribute parallel for simd in foo()
15485 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
15489 #pragma omp target in foo()
15490 #pragma omp teams in foo()
15491 #pragma omp distribute parallel for simd in foo()
15493 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
15499 #pragma omp target in foo()
15500 #pragma omp teams in foo()
15501 #pragma omp distribute simd in foo()
15503 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
15507 #pragma omp target in foo()
15508 #pragma omp teams in foo()
15509 #pragma omp distribute simd in foo()
15511 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
15515 #pragma omp target in foo()
15516 #pragma omp teams in foo()
15517 #pragma omp distribute simd in foo()
15519 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15523 #pragma omp target in foo()
15524 #pragma omp teams in foo()
15525 #pragma omp distribute simd in foo()
15527 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
15531 #pragma omp target in foo()
15532 #pragma omp teams in foo()
15533 #pragma omp distribute simd in foo()
15535 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15539 #pragma omp target in foo()
15540 #pragma omp teams in foo()
15541 #pragma omp distribute simd in foo()
15543 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15547 #pragma omp target in foo()
15548 #pragma omp teams in foo()
15549 #pragma omp distribute simd in foo()
15551 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15556 #pragma omp target in foo()
15557 #pragma omp teams in foo()
15558 #pragma omp distribute simd in foo()
15560 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15565 #pragma omp target in foo()
15566 #pragma omp teams in foo()
15567 #pragma omp distribute simd in foo()
15569 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15574 #pragma omp target in foo()
15575 #pragma omp teams in foo()
15576 #pragma omp distribute simd in foo()
15578 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15583 #pragma omp target in foo()
15584 #pragma omp teams in foo()
15585 #pragma omp distribute simd in foo()
15587 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15592 #pragma omp target in foo()
15593 #pragma omp teams in foo()
15594 #pragma omp distribute simd in foo()
15596 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15598 #pragma omp single in foo()
15604 #pragma omp target in foo()
15605 #pragma omp teams in foo()
15606 #pragma omp distribute simd in foo()
15608 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
15612 #pragma omp target in foo()
15613 #pragma omp teams in foo()
15614 #pragma omp distribute simd in foo()
15616 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
15620 #pragma omp target in foo()
15621 #pragma omp teams in foo()
15622 #pragma omp distribute simd in foo()
15624 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
15629 #pragma omp target in foo()
15630 #pragma omp teams in foo()
15631 #pragma omp distribute simd in foo()
15633 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15638 #pragma omp target in foo()
15639 #pragma omp teams in foo()
15640 #pragma omp distribute simd in foo()
15642 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15645 #pragma omp target in foo()
15646 #pragma omp teams in foo()
15647 #pragma omp distribute simd in foo()
15649 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15652 #pragma omp target in foo()
15653 #pragma omp teams in foo()
15654 #pragma omp distribute simd in foo()
15656 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
15659 #pragma omp target in foo()
15660 #pragma omp teams in foo()
15661 #pragma omp distribute simd in foo()
15663 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15666 #pragma omp target in foo()
15667 #pragma omp teams in foo()
15668 #pragma omp distribute simd in foo()
15670 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15673 #pragma omp target in foo()
15674 #pragma omp teams in foo()
15675 #pragma omp distribute simd in foo()
15677 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15680 #pragma omp target in foo()
15681 #pragma omp teams in foo()
15682 #pragma omp distribute simd in foo()
15684 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15687 #pragma omp target in foo()
15688 #pragma omp teams in foo()
15689 #pragma omp distribute simd in foo()
15691 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15694 #pragma omp target in foo()
15695 #pragma omp teams in foo()
15696 #pragma omp distribute simd in foo()
15698 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
15701 #pragma omp target in foo()
15702 #pragma omp teams in foo()
15703 #pragma omp distribute simd in foo()
15705 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15708 #pragma omp target in foo()
15709 #pragma omp teams in foo()
15710 #pragma omp distribute simd in foo()
15712 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
15715 #pragma omp target in foo()
15716 #pragma omp teams in foo()
15717 #pragma omp distribute simd in foo()
15719 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
15722 #pragma omp target in foo()
15723 #pragma omp teams in foo()
15724 #pragma omp distribute simd in foo()
15726 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
15729 #pragma omp target in foo()
15730 #pragma omp teams in foo()
15731 #pragma omp distribute simd in foo()
15733 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
15737 #pragma omp target in foo()
15738 #pragma omp teams in foo()
15739 #pragma omp distribute simd in foo()
15741 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
15745 #pragma omp target in foo()
15746 #pragma omp teams in foo()
15747 #pragma omp distribute simd in foo()
15749 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
15753 #pragma omp target in foo()
15754 #pragma omp teams in foo()
15755 #pragma omp distribute simd in foo()
15757 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
15761 #pragma omp target in foo()
15762 #pragma omp teams in foo()
15763 #pragma omp distribute simd in foo()
15765 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
15769 #pragma omp target in foo()
15770 #pragma omp teams in foo()
15771 #pragma omp distribute simd in foo()
15773 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
15777 #pragma omp target in foo()
15778 #pragma omp teams in foo()
15779 #pragma omp distribute simd in foo()
15781 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
15784 #pragma omp target in foo()
15785 #pragma omp teams in foo()
15786 #pragma omp distribute simd in foo()
15788 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
15792 #pragma omp target in foo()
15793 #pragma omp teams in foo()
15794 #pragma omp distribute simd in foo()
15796 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
15800 #pragma omp target in foo()
15801 #pragma omp teams in foo()
15802 #pragma omp distribute simd in foo()
15804 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
15808 #pragma omp target in foo()
15809 #pragma omp teams in foo()
15810 #pragma omp distribute simd in foo()
15812 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
15818 #pragma omp target simd in foo()
15820 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
15824 #pragma omp target simd in foo()
15826 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
15830 #pragma omp target simd in foo()
15832 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15836 #pragma omp target simd in foo()
15838 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
15842 #pragma omp target simd in foo()
15844 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15848 #pragma omp target simd in foo()
15850 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15854 #pragma omp target simd in foo()
15856 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15861 #pragma omp target simd in foo()
15863 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15868 #pragma omp target simd in foo()
15870 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15875 #pragma omp target simd in foo()
15877 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15882 #pragma omp target simd in foo()
15884 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15889 #pragma omp target simd in foo()
15891 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15893 #pragma omp single in foo()
15899 #pragma omp target simd in foo()
15901 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
15905 #pragma omp target simd in foo()
15907 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
15911 #pragma omp target simd in foo()
15913 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
15918 #pragma omp target simd in foo()
15920 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15925 #pragma omp target simd in foo()
15927 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15930 #pragma omp target simd in foo()
15932 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15935 #pragma omp target simd in foo()
15937 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
15940 #pragma omp target simd in foo()
15942 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15945 #pragma omp target simd in foo()
15947 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15950 #pragma omp target simd in foo()
15952 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15955 #pragma omp target simd in foo()
15957 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15960 #pragma omp target simd in foo()
15962 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15965 #pragma omp target simd in foo()
15967 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
15970 #pragma omp target simd in foo()
15972 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15975 #pragma omp target simd in foo()
15977 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
15980 #pragma omp target simd in foo()
15982 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
15985 #pragma omp target simd in foo()
15987 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
15990 #pragma omp target simd in foo()
15992 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
15996 #pragma omp target simd in foo()
15998 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
16002 #pragma omp target simd in foo()
16004 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
16008 #pragma omp target simd in foo()
16010 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
16014 #pragma omp target simd in foo()
16016 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
16020 #pragma omp target simd in foo()
16022 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
16026 #pragma omp target simd in foo()
16028 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
16031 #pragma omp target simd in foo()
16033 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
16037 #pragma omp target simd in foo()
16039 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
16043 #pragma omp target simd in foo()
16045 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
16049 #pragma omp target simd in foo()
16051 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
16057 #pragma omp teams distribute // omp45-error {{orphaned 'omp teams distribute' directives are prohib… in foo()
16060 #pragma omp target in foo()
16061 #pragma omp teams distribute in foo()
16063 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
16067 #pragma omp target in foo()
16068 #pragma omp teams distribute in foo()
16070 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute… in foo()
16074 #pragma omp target in foo()
16075 #pragma omp teams distribute in foo()
16077 #pragma omp for // OK in foo()
16081 #pragma omp target in foo()
16082 #pragma omp teams distribute in foo()
16084 #pragma omp simd // OK in foo()
16088 #pragma omp target in foo()
16089 #pragma omp teams distribute in foo()
16091 #pragma omp for simd // OK in foo()
16095 #pragma omp target in foo()
16096 #pragma omp teams distribute in foo()
16098 #pragma omp parallel // OK in foo()
16102 #pragma omp target in foo()
16103 #pragma omp teams distribute in foo()
16105 #pragma omp sections // OK in foo()
16110 #pragma omp target in foo()
16111 #pragma omp teams distribute in foo()
16113 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
16118 #pragma omp target in foo()
16119 #pragma omp teams distribute in foo()
16121 #pragma omp single // OK in foo()
16126 #pragma omp target in foo()
16127 #pragma omp teams distribute in foo()
16129 #pragma omp master // OK in foo()
16134 #pragma omp target in foo()
16135 #pragma omp teams distribute in foo()
16137 #pragma omp critical // OK in foo()
16142 #pragma omp target in foo()
16143 #pragma omp teams distribute in foo()
16145 #pragma omp parallel // OK in foo()
16147 #pragma omp single in foo()
16153 #pragma omp target in foo()
16154 #pragma omp teams distribute in foo()
16156 #pragma omp parallel for // OK in foo()
16160 #pragma omp target in foo()
16161 #pragma omp teams distribute in foo()
16163 #pragma omp parallel for simd // OK in foo()
16167 #pragma omp target in foo()
16168 #pragma omp teams distribute in foo()
16170 #pragma omp parallel sections // OK in foo()
16175 #pragma omp target in foo()
16176 #pragma omp teams distribute in foo()
16178 #pragma omp task // OK in foo()
16183 #pragma omp target in foo()
16184 #pragma omp teams distribute in foo()
16186 #pragma omp taskyield // OK in foo()
16189 #pragma omp target in foo()
16190 #pragma omp teams distribute in foo()
16192 #pragma omp barrier // OK in foo()
16195 #pragma omp target in foo()
16196 #pragma omp teams distribute in foo()
16198 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute' regi… in foo()
16201 #pragma omp target in foo()
16202 #pragma omp teams distribute in foo()
16204 #pragma omp taskwait // OK in foo()
16207 #pragma omp target in foo()
16208 #pragma omp teams distribute in foo()
16210 #pragma omp flush // OK in foo()
16213 #pragma omp target in foo()
16214 #pragma omp teams distribute in foo()
16216 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute' r… in foo()
16219 #pragma omp target in foo()
16220 #pragma omp teams distribute in foo()
16222 #pragma omp atomic // OK in foo()
16225 #pragma omp target in foo()
16226 #pragma omp teams distribute in foo()
16228 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
16231 #pragma omp target in foo()
16232 #pragma omp teams distribute in foo()
16234 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
16237 #pragma omp target in foo()
16238 #pragma omp teams distribute in foo()
16240 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
16244 #pragma omp target in foo()
16245 #pragma omp teams distribute in foo()
16247 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
16250 #pragma omp target in foo()
16251 #pragma omp teams distribute in foo()
16253 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
16256 #pragma omp target in foo()
16257 #pragma omp teams distribute in foo()
16259 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute' reg… in foo()
16262 #pragma omp target in foo()
16263 #pragma omp teams distribute in foo()
16265 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
16268 #pragma omp target in foo()
16269 #pragma omp teams distribute in foo()
16271 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distr… in foo()
16275 #pragma omp target in foo()
16276 #pragma omp teams distribute in foo()
16278 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
16282 #pragma omp target in foo()
16283 #pragma omp teams distribute in foo()
16285 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams dist… in foo()
16289 #pragma omp target in foo()
16290 #pragma omp teams distribute in foo()
16292 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
16296 #pragma omp target in foo()
16297 #pragma omp teams distribute in foo()
16299 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
16303 #pragma omp target in foo()
16304 #pragma omp teams distribute in foo()
16306 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
16310 #pragma omp target in foo()
16311 #pragma omp teams distribute in foo()
16313 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
16316 #pragma omp target in foo()
16317 #pragma omp teams distribute in foo()
16319 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
16323 #pragma omp target in foo()
16324 #pragma omp teams distribute in foo()
16326 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
16330 #pragma omp target in foo()
16331 #pragma omp teams distribute in foo()
16333 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
16337 #pragma omp target in foo()
16338 #pragma omp teams distribute in foo()
16340 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
16346 #pragma omp teams distribute simd // omp45-error {{orphaned 'omp teams distribute simd' directives … in foo()
16349 #pragma omp target in foo()
16350 #pragma omp teams distribute simd in foo()
16352 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
16356 #pragma omp target in foo()
16357 #pragma omp teams distribute simd in foo()
16359 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
16363 #pragma omp target in foo()
16364 #pragma omp teams distribute simd in foo()
16366 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16370 #pragma omp target in foo()
16371 #pragma omp teams distribute simd in foo()
16373 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
16377 #pragma omp target in foo()
16378 #pragma omp teams distribute simd in foo()
16380 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16384 #pragma omp target in foo()
16385 #pragma omp teams distribute simd in foo()
16387 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16391 #pragma omp target in foo()
16392 #pragma omp teams distribute simd in foo()
16394 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16399 #pragma omp target in foo()
16400 #pragma omp teams distribute simd in foo()
16402 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16407 #pragma omp target in foo()
16408 #pragma omp teams distribute simd in foo()
16410 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16415 #pragma omp target in foo()
16416 #pragma omp teams distribute simd in foo()
16418 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16423 #pragma omp target in foo()
16424 #pragma omp teams distribute simd in foo()
16426 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16431 #pragma omp target in foo()
16432 #pragma omp teams distribute simd in foo()
16434 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16436 #pragma omp single in foo()
16442 #pragma omp target in foo()
16443 #pragma omp teams distribute simd in foo()
16445 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
16449 #pragma omp target in foo()
16450 #pragma omp teams distribute simd in foo()
16452 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
16456 #pragma omp target in foo()
16457 #pragma omp teams distribute simd in foo()
16459 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
16464 #pragma omp target in foo()
16465 #pragma omp teams distribute simd in foo()
16467 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16472 #pragma omp target in foo()
16473 #pragma omp teams distribute simd in foo()
16475 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16478 #pragma omp target in foo()
16479 #pragma omp teams distribute simd in foo()
16481 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16484 #pragma omp target in foo()
16485 #pragma omp teams distribute simd in foo()
16487 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
16490 #pragma omp target in foo()
16491 #pragma omp teams distribute simd in foo()
16493 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16496 #pragma omp target in foo()
16497 #pragma omp teams distribute simd in foo()
16499 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16502 #pragma omp target in foo()
16503 #pragma omp teams distribute simd in foo()
16505 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16508 #pragma omp target in foo()
16509 #pragma omp teams distribute simd in foo()
16511 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16514 #pragma omp target in foo()
16515 #pragma omp teams distribute simd in foo()
16517 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16520 #pragma omp target in foo()
16521 #pragma omp teams distribute simd in foo()
16523 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
16526 #pragma omp target in foo()
16527 #pragma omp teams distribute simd in foo()
16529 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
16533 #pragma omp target in foo()
16534 #pragma omp teams distribute simd in foo()
16536 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
16539 #pragma omp target in foo()
16540 #pragma omp teams distribute simd in foo()
16542 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
16545 #pragma omp target in foo()
16546 #pragma omp teams distribute simd in foo()
16548 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16551 #pragma omp target in foo()
16552 #pragma omp teams distribute simd in foo()
16554 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
16557 #pragma omp target in foo()
16558 #pragma omp teams distribute simd in foo()
16560 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
16564 #pragma omp target in foo()
16565 #pragma omp teams distribute simd in foo()
16567 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
16571 #pragma omp target in foo()
16572 #pragma omp teams distribute simd in foo()
16574 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
16578 #pragma omp target in foo()
16579 #pragma omp teams distribute simd in foo()
16581 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
16585 #pragma omp target in foo()
16586 #pragma omp teams distribute simd in foo()
16588 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
16592 #pragma omp target in foo()
16593 #pragma omp teams distribute simd in foo()
16595 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
16599 #pragma omp target in foo()
16600 #pragma omp teams distribute simd in foo()
16602 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
16605 #pragma omp target in foo()
16606 #pragma omp teams distribute simd in foo()
16608 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
16612 #pragma omp target in foo()
16613 #pragma omp teams distribute simd in foo()
16615 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
16619 #pragma omp target in foo()
16620 #pragma omp teams distribute simd in foo()
16622 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
16626 #pragma omp target in foo()
16627 #pragma omp teams distribute simd in foo()
16629 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
16635 #pragma omp teams distribute parallel for simd // omp45-error {{orphaned 'omp teams distribute para… in foo()
16638 #pragma omp target in foo()
16639 #pragma omp teams distribute parallel for simd in foo()
16641 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
16645 #pragma omp target in foo()
16646 #pragma omp teams distribute parallel for simd in foo()
16648 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
16652 #pragma omp target in foo()
16653 #pragma omp teams distribute parallel for simd in foo()
16655 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16659 #pragma omp target in foo()
16660 #pragma omp teams distribute parallel for simd in foo()
16662 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
16666 #pragma omp target in foo()
16667 #pragma omp teams distribute parallel for simd in foo()
16669 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16673 #pragma omp target in foo()
16674 #pragma omp teams distribute parallel for simd in foo()
16676 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16680 #pragma omp target in foo()
16681 #pragma omp teams distribute parallel for simd in foo()
16683 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16688 #pragma omp target in foo()
16689 #pragma omp teams distribute parallel for simd in foo()
16691 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16696 #pragma omp target in foo()
16697 #pragma omp teams distribute parallel for simd in foo()
16699 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16704 #pragma omp target in foo()
16705 #pragma omp teams distribute parallel for simd in foo()
16707 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16712 #pragma omp target in foo()
16713 #pragma omp teams distribute parallel for simd in foo()
16715 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16720 #pragma omp target in foo()
16721 #pragma omp teams distribute parallel for simd in foo()
16723 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16725 #pragma omp single in foo()
16731 #pragma omp target in foo()
16732 #pragma omp teams distribute parallel for simd in foo()
16734 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
16738 #pragma omp target in foo()
16739 #pragma omp teams distribute parallel for simd in foo()
16741 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
16745 #pragma omp target in foo()
16746 #pragma omp teams distribute parallel for simd in foo()
16748 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
16753 #pragma omp target in foo()
16754 #pragma omp teams distribute parallel for simd in foo()
16756 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16761 #pragma omp target in foo()
16762 #pragma omp teams distribute parallel for simd in foo()
16764 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16767 #pragma omp target in foo()
16768 #pragma omp teams distribute parallel for simd in foo()
16770 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16773 #pragma omp target in foo()
16774 #pragma omp teams distribute parallel for simd in foo()
16776 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
16779 #pragma omp target in foo()
16780 #pragma omp teams distribute parallel for simd in foo()
16782 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16785 #pragma omp target in foo()
16786 #pragma omp teams distribute parallel for simd in foo()
16788 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16791 #pragma omp target in foo()
16792 #pragma omp teams distribute parallel for simd in foo()
16794 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16797 #pragma omp target in foo()
16798 #pragma omp teams distribute parallel for simd in foo()
16800 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16803 #pragma omp target in foo()
16804 #pragma omp teams distribute parallel for simd in foo()
16806 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16809 #pragma omp target in foo()
16810 #pragma omp teams distribute parallel for simd in foo()
16812 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
16815 #pragma omp target in foo()
16816 #pragma omp teams distribute parallel for simd in foo()
16818 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
16822 #pragma omp target in foo()
16823 #pragma omp teams distribute parallel for simd in foo()
16825 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
16828 #pragma omp target in foo()
16829 #pragma omp teams distribute parallel for simd in foo()
16831 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
16834 #pragma omp target in foo()
16835 #pragma omp teams distribute parallel for simd in foo()
16837 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16840 #pragma omp target in foo()
16841 #pragma omp teams distribute parallel for simd in foo()
16843 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
16846 #pragma omp target in foo()
16847 #pragma omp teams distribute parallel for simd in foo()
16849 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
16853 #pragma omp target in foo()
16854 #pragma omp teams distribute parallel for simd in foo()
16856 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
16860 #pragma omp target in foo()
16861 #pragma omp teams distribute parallel for simd in foo()
16863 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
16867 #pragma omp target in foo()
16868 #pragma omp teams distribute parallel for simd in foo()
16870 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
16874 #pragma omp target in foo()
16875 #pragma omp teams distribute parallel for simd in foo()
16877 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
16881 #pragma omp target in foo()
16882 #pragma omp teams distribute parallel for simd in foo()
16884 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
16888 #pragma omp target in foo()
16889 #pragma omp teams distribute parallel for simd in foo()
16891 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
16894 #pragma omp target in foo()
16895 #pragma omp teams distribute parallel for simd in foo()
16897 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
16901 #pragma omp target in foo()
16902 #pragma omp teams distribute parallel for simd in foo()
16904 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
16908 #pragma omp target in foo()
16909 #pragma omp teams distribute parallel for simd in foo()
16911 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
16915 #pragma omp target in foo()
16916 #pragma omp teams distribute parallel for simd in foo()
16918 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
16924 #pragma omp teams distribute parallel for // omp45-error {{orphaned 'omp teams distribute parallel … in foo()
16927 #pragma omp target in foo()
16928 #pragma omp teams distribute parallel for in foo()
16930 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
16934 #pragma omp target in foo()
16935 #pragma omp teams distribute parallel for in foo()
16937 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute… in foo()
16941 #pragma omp target in foo()
16942 #pragma omp teams distribute parallel for in foo()
16944 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams distribute parall… in foo()
16948 #pragma omp target in foo()
16949 #pragma omp teams distribute parallel for in foo()
16951 #pragma omp simd // OK in foo()
16955 #pragma omp target in foo()
16956 #pragma omp teams distribute parallel for in foo()
16958 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams distribute p… in foo()
16962 #pragma omp target in foo()
16963 #pragma omp teams distribute parallel for in foo()
16965 #pragma omp parallel // OK in foo()
16969 #pragma omp target in foo()
16970 #pragma omp teams distribute parallel for in foo()
16972 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams distribute p… in foo()
16977 #pragma omp target in foo()
16978 #pragma omp teams distribute parallel for in foo()
16980 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
16985 #pragma omp target in foo()
16986 #pragma omp teams distribute parallel for in foo()
16988 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams distribute par… in foo()
16993 #pragma omp target in foo()
16994 #pragma omp teams distribute parallel for in foo()
16996 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams distribute par… in foo()
17001 #pragma omp target in foo()
17002 #pragma omp teams distribute parallel for in foo()
17004 #pragma omp critical // OK in foo()
17009 #pragma omp target in foo()
17010 #pragma omp teams distribute parallel for in foo()
17012 #pragma omp parallel // OK in foo()
17014 #pragma omp single in foo()
17020 #pragma omp target in foo()
17021 #pragma omp teams distribute parallel for in foo()
17023 #pragma omp parallel for // OK in foo()
17027 #pragma omp target in foo()
17028 #pragma omp teams distribute parallel for in foo()
17030 #pragma omp parallel for simd // OK in foo()
17034 #pragma omp target in foo()
17035 #pragma omp teams distribute parallel for in foo()
17037 #pragma omp parallel sections // OK in foo()
17042 #pragma omp target in foo()
17043 #pragma omp teams distribute parallel for in foo()
17045 #pragma omp task // OK in foo()
17050 #pragma omp target in foo()
17051 #pragma omp teams distribute parallel for in foo()
17053 #pragma omp taskyield // OK in foo()
17056 #pragma omp target in foo()
17057 #pragma omp teams distribute parallel for in foo()
17059 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams distribute pa… in foo()
17062 #pragma omp target in foo()
17063 #pragma omp teams distribute parallel for in foo()
17065 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute paral… in foo()
17068 #pragma omp target in foo()
17069 #pragma omp teams distribute parallel for in foo()
17071 #pragma omp taskwait // OK in foo()
17074 #pragma omp target in foo()
17075 #pragma omp teams distribute parallel for in foo()
17077 #pragma omp flush // OK in foo()
17080 #pragma omp target in foo()
17081 #pragma omp teams distribute parallel for in foo()
17083 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute pa… in foo()
17086 #pragma omp target in foo()
17087 #pragma omp teams distribute parallel for in foo()
17089 #pragma omp atomic // OK in foo()
17092 #pragma omp target in foo()
17093 #pragma omp teams distribute parallel for in foo()
17095 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
17098 #pragma omp target in foo()
17099 #pragma omp teams distribute parallel for in foo()
17101 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
17104 #pragma omp target in foo()
17105 #pragma omp teams distribute parallel for in foo()
17107 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
17111 #pragma omp target in foo()
17112 #pragma omp teams distribute parallel for in foo()
17114 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
17117 #pragma omp target in foo()
17118 #pragma omp teams distribute parallel for in foo()
17120 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
17123 #pragma omp target in foo()
17124 #pragma omp teams distribute parallel for in foo()
17126 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute para… in foo()
17129 #pragma omp target in foo()
17130 #pragma omp teams distribute parallel for in foo()
17132 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
17135 #pragma omp target in foo()
17136 #pragma omp teams distribute parallel for in foo()
17138 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distr… in foo()
17142 #pragma omp target in foo()
17143 #pragma omp teams distribute parallel for in foo()
17145 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
17149 #pragma omp target in foo()
17150 #pragma omp teams distribute parallel for in foo()
17152 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams dist… in foo()
17156 #pragma omp target in foo()
17157 #pragma omp teams distribute parallel for in foo()
17159 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
17163 #pragma omp target in foo()
17164 #pragma omp teams distribute parallel for in foo()
17166 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
17170 #pragma omp target in foo()
17171 #pragma omp teams distribute parallel for in foo()
17173 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
17177 #pragma omp target in foo()
17178 #pragma omp teams distribute parallel for in foo()
17180 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
17183 #pragma omp target in foo()
17184 #pragma omp teams distribute parallel for in foo()
17186 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
17190 #pragma omp target in foo()
17191 #pragma omp teams distribute parallel for in foo()
17193 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
17197 #pragma omp target in foo()
17198 #pragma omp teams distribute parallel for in foo()
17200 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
17204 #pragma omp target in foo()
17205 #pragma omp teams distribute parallel for in foo()
17207 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
17213 #pragma omp target teams in foo()
17214 #pragma omp parallel in foo()
17216 #pragma omp target teams in foo()
17217 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams' region; p… in foo()
17220 #pragma omp target teams in foo()
17221 #pragma omp simd // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
17224 #pragma omp target teams in foo()
17225 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
17228 #pragma omp target teams in foo()
17229 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
17233 #pragma omp target teams in foo()
17234 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
17238 #pragma omp target teams in foo()
17239 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams' region… in foo()
17242 #pragma omp target teams in foo()
17243 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams' region… in foo()
17247 #pragma omp target teams in foo()
17248 #pragma omp critical // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
17252 #pragma omp target teams in foo()
17253 #pragma omp parallel for in foo()
17256 #pragma omp target teams in foo()
17257 #pragma omp parallel for simd in foo()
17260 #pragma omp target teams in foo()
17261 #pragma omp parallel sections in foo()
17265 #pragma omp target teams in foo()
17266 #pragma omp task // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
17270 #pragma omp target teams in foo()
17272 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'target teams' reg… in foo()
17275 #pragma omp target teams in foo()
17277 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams' regio… in foo()
17280 #pragma omp target teams in foo()
17282 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
17285 #pragma omp target teams in foo()
17287 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
17290 #pragma omp target teams in foo()
17292 #pragma omp flush // expected-error {{region cannot be closely nested inside 'target teams' region;… in foo()
17295 #pragma omp target teams in foo()
17297 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams' regio… in foo()
17300 #pragma omp target teams in foo()
17302 #pragma omp atomic // expected-error {{region cannot be closely nested inside 'target teams' region… in foo()
17305 #pragma omp target teams in foo()
17307 #pragma omp target // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
17310 #pragma omp target teams in foo()
17312 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams' regio… in foo()
17315 #pragma omp target teams in foo()
17316 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams' r… in foo()
17319 #pragma omp target teams in foo()
17321 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
17323 #pragma omp target teams in foo()
17325 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
17327 #pragma omp target teams in foo()
17329 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams' region;… in foo()
17332 #pragma omp target teams in foo()
17334 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
17338 #pragma omp target teams in foo()
17339 #pragma omp distribute in foo()
17342 #pragma omp target teams in foo()
17344 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams' r… in foo()
17347 #pragma omp target teams in foo()
17348 #pragma omp distribute parallel for in foo()
17351 #pragma omp target teams in foo()
17353 #pragma omp distribute parallel for in foo()
17356 #pragma omp distribute parallel for in foo()
17360 #pragma omp target teams in foo()
17362 #pragma omp distribute parallel for simd in foo()
17365 #pragma omp distribute parallel for simd in foo()
17369 #pragma omp target teams in foo()
17371 #pragma omp distribute simd in foo()
17374 #pragma omp distribute simd in foo()
17378 #pragma omp target teams in foo()
17380 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
17384 #pragma omp target teams in foo()
17386 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
17390 #pragma omp target teams in foo()
17392 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
17396 #pragma omp target teams in foo()
17398 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
17402 #pragma omp target teams in foo()
17404 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
17408 #pragma omp target teams in foo()
17410 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
17413 #pragma omp target teams in foo()
17415 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
17419 #pragma omp target teams in foo()
17421 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
17425 #pragma omp target teams in foo()
17427 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
17431 #pragma omp target teams in foo()
17433 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
17439 #pragma omp target teams distribute // OK in foo()
17442 #pragma omp target teams distribute in foo()
17444 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
17448 #pragma omp target teams distribute in foo()
17450 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams dis… in foo()
17454 #pragma omp target teams distribute in foo()
17456 #pragma omp for // OK in foo()
17460 #pragma omp target teams distribute in foo()
17462 #pragma omp simd // OK in foo()
17466 #pragma omp target teams distribute in foo()
17468 #pragma omp for simd // OK in foo()
17472 #pragma omp target teams distribute in foo()
17474 #pragma omp parallel // OK in foo()
17478 #pragma omp target teams distribute in foo()
17480 #pragma omp sections // OK in foo()
17485 #pragma omp target teams distribute in foo()
17487 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
17492 #pragma omp target teams distribute in foo()
17494 #pragma omp single // OK in foo()
17499 #pragma omp target teams distribute in foo()
17501 #pragma omp master // OK in foo()
17506 #pragma omp target teams distribute in foo()
17508 #pragma omp critical // OK in foo()
17513 #pragma omp target teams distribute in foo()
17515 #pragma omp parallel // OK in foo()
17517 #pragma omp single in foo()
17523 #pragma omp target teams distribute in foo()
17525 #pragma omp parallel for // OK in foo()
17529 #pragma omp target teams distribute in foo()
17531 #pragma omp parallel for simd // OK in foo()
17535 #pragma omp target teams distribute in foo()
17537 #pragma omp parallel sections // OK in foo()
17542 #pragma omp target teams distribute in foo()
17544 #pragma omp task // OK in foo()
17549 #pragma omp target teams distribute in foo()
17551 #pragma omp taskyield // OK in foo()
17554 #pragma omp target teams distribute in foo()
17556 #pragma omp barrier // OK in foo()
17559 #pragma omp target teams distribute in foo()
17561 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribut… in foo()
17564 #pragma omp target teams distribute in foo()
17566 #pragma omp taskwait // OK in foo()
17569 #pragma omp target teams distribute in foo()
17571 #pragma omp flush // OK in foo()
17574 #pragma omp target teams distribute in foo()
17576 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
17579 #pragma omp target teams distribute in foo()
17581 #pragma omp atomic // OK in foo()
17584 #pragma omp target teams distribute in foo()
17586 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute' reg… in foo()
17589 #pragma omp target teams distribute in foo()
17591 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distr… in foo()
17594 #pragma omp target teams distribute in foo()
17596 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams di… in foo()
17600 #pragma omp target teams distribute in foo()
17602 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
17605 #pragma omp target teams distribute in foo()
17607 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
17610 #pragma omp target teams distribute in foo()
17612 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribu… in foo()
17615 #pragma omp target teams distribute in foo()
17617 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams di… in foo()
17620 #pragma omp target teams distribute in foo()
17622 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target team… in foo()
17626 #pragma omp target teams distribute in foo()
17628 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute… in foo()
17632 #pragma omp target teams distribute in foo()
17634 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
17638 #pragma omp target teams distribute in foo()
17640 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
17644 #pragma omp target teams distribute in foo()
17646 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
17650 #pragma omp target teams distribute in foo()
17652 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
17656 #pragma omp target teams distribute in foo()
17658 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribut… in foo()
17661 #pragma omp target teams distribute in foo()
17663 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
17667 #pragma omp target teams distribute in foo()
17669 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
17673 #pragma omp target teams distribute in foo()
17675 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
17679 #pragma omp target teams distribute in foo()
17681 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
17687 #pragma omp target teams distribute parallel for // OK in foo()
17690 #pragma omp target teams distribute parallel for in foo()
17692 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
17696 #pragma omp target teams distribute parallel for in foo()
17698 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams dis… in foo()
17702 #pragma omp target teams distribute parallel for in foo()
17704 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams distribute… in foo()
17708 #pragma omp target teams distribute parallel for in foo()
17710 #pragma omp simd // OK in foo()
17714 #pragma omp target teams distribute parallel for in foo()
17716 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams distr… in foo()
17720 #pragma omp target teams distribute parallel for in foo()
17722 #pragma omp parallel // OK in foo()
17726 #pragma omp target teams distribute parallel for in foo()
17728 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams distr… in foo()
17733 #pragma omp target teams distribute parallel for in foo()
17735 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
17740 #pragma omp target teams distribute parallel for in foo()
17742 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams distrib… in foo()
17747 #pragma omp target teams distribute parallel for in foo()
17749 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams distrib… in foo()
17754 #pragma omp target teams distribute parallel for in foo()
17756 #pragma omp critical // OK in foo()
17761 #pragma omp target teams distribute parallel for in foo()
17763 #pragma omp parallel // OK in foo()
17765 #pragma omp single in foo()
17771 #pragma omp target teams distribute parallel for in foo()
17773 #pragma omp parallel for // OK in foo()
17777 #pragma omp target teams distribute parallel for in foo()
17779 #pragma omp parallel for simd // OK in foo()
17783 #pragma omp target teams distribute parallel for in foo()
17785 #pragma omp parallel sections // OK in foo()
17790 #pragma omp target teams distribute parallel for in foo()
17792 #pragma omp task // OK in foo()
17797 #pragma omp target teams distribute parallel for in foo()
17799 #pragma omp taskyield // OK in foo()
17802 #pragma omp target teams distribute parallel for in foo()
17804 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
17807 #pragma omp target teams distribute parallel for in foo()
17809 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribut… in foo()
17812 #pragma omp target teams distribute parallel for in foo()
17814 #pragma omp taskwait // OK in foo()
17817 #pragma omp target teams distribute parallel for in foo()
17819 #pragma omp flush // OK in foo()
17822 #pragma omp target teams distribute parallel for in foo()
17824 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
17827 #pragma omp target teams distribute parallel for in foo()
17829 #pragma omp atomic // OK in foo()
17832 #pragma omp target teams distribute parallel for in foo()
17834 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute para… in foo()
17837 #pragma omp target teams distribute parallel for in foo()
17839 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distr… in foo()
17842 #pragma omp target teams distribute parallel for in foo()
17844 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams di… in foo()
17848 #pragma omp target teams distribute parallel for in foo()
17850 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
17853 #pragma omp target teams distribute parallel for in foo()
17855 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
17858 #pragma omp target teams distribute parallel for in foo()
17860 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribu… in foo()
17863 #pragma omp target teams distribute parallel for in foo()
17865 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams di… in foo()
17868 #pragma omp target teams distribute parallel for in foo()
17870 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target team… in foo()
17874 #pragma omp target teams distribute parallel for in foo()
17876 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute… in foo()
17880 #pragma omp target teams distribute parallel for in foo()
17882 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
17886 #pragma omp target teams distribute parallel for in foo()
17888 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
17892 #pragma omp target teams distribute parallel for in foo()
17894 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
17898 #pragma omp target teams distribute parallel for in foo()
17900 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
17904 #pragma omp target teams distribute parallel for in foo()
17906 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribut… in foo()
17909 #pragma omp target teams distribute parallel for in foo()
17911 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
17915 #pragma omp target teams distribute parallel for in foo()
17917 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
17921 #pragma omp target teams distribute parallel for in foo()
17923 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
17927 #pragma omp target teams distribute parallel for in foo()
17929 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
17935 #pragma omp target teams distribute parallel for simd // OK in foo()
17938 #pragma omp target teams distribute parallel for simd in foo()
17940 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
17944 #pragma omp target teams distribute parallel for simd in foo()
17946 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
17950 #pragma omp target teams distribute parallel for simd in foo()
17952 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17956 #pragma omp target teams distribute parallel for simd in foo()
17958 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
17962 #pragma omp target teams distribute parallel for simd in foo()
17964 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17968 #pragma omp target teams distribute parallel for simd in foo()
17970 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17974 #pragma omp target teams distribute parallel for simd in foo()
17976 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17981 #pragma omp target teams distribute parallel for simd in foo()
17983 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17988 #pragma omp target teams distribute parallel for simd in foo()
17990 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17995 #pragma omp target teams distribute parallel for simd in foo()
17997 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18002 #pragma omp target teams distribute parallel for simd in foo()
18004 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18009 #pragma omp target teams distribute parallel for simd in foo()
18011 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18013 #pragma omp single in foo()
18019 #pragma omp target teams distribute parallel for simd in foo()
18021 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
18025 #pragma omp target teams distribute parallel for simd in foo()
18027 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
18031 #pragma omp target teams distribute parallel for simd in foo()
18033 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
18038 #pragma omp target teams distribute parallel for simd in foo()
18040 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18045 #pragma omp target teams distribute parallel for simd in foo()
18047 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18050 #pragma omp target teams distribute parallel for simd in foo()
18052 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18055 #pragma omp target teams distribute parallel for simd in foo()
18057 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
18060 #pragma omp target teams distribute parallel for simd in foo()
18062 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18065 #pragma omp target teams distribute parallel for simd in foo()
18067 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18070 #pragma omp target teams distribute parallel for simd in foo()
18072 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18075 #pragma omp target teams distribute parallel for simd in foo()
18077 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18080 #pragma omp target teams distribute parallel for simd in foo()
18082 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18085 #pragma omp target teams distribute parallel for simd in foo()
18087 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
18090 #pragma omp target teams distribute parallel for simd in foo()
18092 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
18096 #pragma omp target teams distribute parallel for simd in foo()
18098 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
18101 #pragma omp target teams distribute parallel for simd in foo()
18103 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
18106 #pragma omp target teams distribute parallel for simd in foo()
18108 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18111 #pragma omp target teams distribute parallel for simd in foo()
18113 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
18116 #pragma omp target teams distribute parallel for simd in foo()
18118 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
18122 #pragma omp target teams distribute parallel for simd in foo()
18124 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
18128 #pragma omp target teams distribute parallel for simd in foo()
18130 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
18134 #pragma omp target teams distribute parallel for simd in foo()
18136 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
18140 #pragma omp target teams distribute parallel for simd in foo()
18142 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
18146 #pragma omp target teams distribute parallel for simd in foo()
18148 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
18152 #pragma omp target teams distribute parallel for simd in foo()
18154 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
18157 #pragma omp target teams distribute parallel for simd in foo()
18159 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
18163 #pragma omp target teams distribute parallel for simd in foo()
18165 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
18169 #pragma omp target teams distribute parallel for simd in foo()
18171 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
18175 #pragma omp target teams distribute parallel for simd in foo()
18177 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
18183 #pragma omp target teams distribute simd // OK in foo()
18186 #pragma omp target teams distribute simd in foo()
18188 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
18192 #pragma omp target teams distribute simd in foo()
18194 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
18198 #pragma omp target teams distribute simd in foo()
18200 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18204 #pragma omp target teams distribute simd in foo()
18206 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
18210 #pragma omp target teams distribute simd in foo()
18212 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18216 #pragma omp target teams distribute simd in foo()
18218 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18222 #pragma omp target teams distribute simd in foo()
18224 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18229 #pragma omp target teams distribute simd in foo()
18231 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18236 #pragma omp target teams distribute simd in foo()
18238 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18243 #pragma omp target teams distribute simd in foo()
18245 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18250 #pragma omp target teams distribute simd in foo()
18252 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18257 #pragma omp target teams distribute simd in foo()
18259 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18261 #pragma omp single in foo()
18267 #pragma omp target teams distribute simd in foo()
18269 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
18273 #pragma omp target teams distribute simd in foo()
18275 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
18279 #pragma omp target teams distribute simd in foo()
18281 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
18286 #pragma omp target teams distribute simd in foo()
18288 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18293 #pragma omp target teams distribute simd in foo()
18295 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18298 #pragma omp target teams distribute simd in foo()
18300 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18303 #pragma omp target teams distribute simd in foo()
18305 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
18308 #pragma omp target teams distribute simd in foo()
18310 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18313 #pragma omp target teams distribute simd in foo()
18315 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18318 #pragma omp target teams distribute simd in foo()
18320 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18323 #pragma omp target teams distribute simd in foo()
18325 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18328 #pragma omp target teams distribute simd in foo()
18330 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18333 #pragma omp target teams distribute simd in foo()
18335 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
18338 #pragma omp target teams distribute simd in foo()
18340 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
18344 #pragma omp target teams distribute simd in foo()
18346 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
18349 #pragma omp target teams distribute simd in foo()
18351 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
18354 #pragma omp target teams distribute simd in foo()
18356 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18359 #pragma omp target teams distribute simd in foo()
18361 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
18364 #pragma omp target teams distribute simd in foo()
18366 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
18370 #pragma omp target teams distribute simd in foo()
18372 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
18376 #pragma omp target teams distribute simd in foo()
18378 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
18382 #pragma omp target teams distribute simd in foo()
18384 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
18388 #pragma omp target teams distribute simd in foo()
18390 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
18394 #pragma omp target teams distribute simd in foo()
18396 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
18400 #pragma omp target teams distribute simd in foo()
18402 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
18405 #pragma omp target teams distribute simd in foo()
18407 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
18411 #pragma omp target teams distribute simd in foo()
18413 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
18417 #pragma omp target teams distribute simd in foo()
18419 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
18423 #pragma omp target teams distribute simd in foo()
18425 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()