Lines Matching refs:omp

17 #pragma omp parallel  in foo()
18 #pragma omp for in foo()
21 #pragma omp parallel in foo()
22 #pragma omp simd in foo()
25 #pragma omp parallel in foo()
26 #pragma omp for simd in foo()
29 #pragma omp parallel in foo()
30 #pragma omp sections in foo()
34 #pragma omp parallel in foo()
35 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
39 #pragma omp parallel in foo()
40 #pragma omp single in foo()
43 #pragma omp parallel in foo()
44 #pragma omp master in foo()
48 #pragma omp parallel in foo()
49 #pragma omp critical in foo()
53 #pragma omp parallel in foo()
54 #pragma omp parallel for in foo()
57 #pragma omp parallel in foo()
58 #pragma omp parallel for simd in foo()
61 #pragma omp parallel in foo()
62 #pragma omp parallel sections in foo()
66 #pragma omp parallel in foo()
67 #pragma omp parallel master in foo()
71 #pragma omp parallel in foo()
72 #pragma omp parallel masked in foo()
76 #pragma omp parallel in foo()
77 #pragma omp task in foo()
81 #pragma omp parallel in foo()
83 #pragma omp taskyield in foo()
86 #pragma omp parallel in foo()
88 #pragma omp barrier in foo()
91 #pragma omp parallel in foo()
93 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel' region; perh… in foo()
96 #pragma omp parallel in foo()
98 #pragma omp taskwait in foo()
101 #pragma omp parallel in foo()
103 #pragma omp flush in foo()
106 #pragma omp parallel in foo()
108 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel' region; p… in foo()
111 #pragma omp parallel in foo()
113 #pragma omp atomic in foo()
116 #pragma omp parallel in foo()
118 #pragma omp target in foo()
121 #pragma omp parallel in foo()
123 #pragma omp target parallel in foo()
126 #pragma omp parallel in foo()
128 #pragma omp target parallel for in foo()
132 #pragma omp parallel in foo()
134 #pragma omp target enter data map(to: a) in foo()
137 #pragma omp parallel in foo()
139 #pragma omp target exit data map(from: a) in foo()
142 #pragma omp parallel in foo()
144 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel' region; per… in foo()
147 #pragma omp parallel in foo()
149 #pragma omp taskloop in foo()
153 #pragma omp parallel in foo()
155 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel' region… in foo()
159 #pragma omp parallel in foo()
161 #pragma omp target update to(a) in foo()
163 #pragma omp parallel in foo()
165 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
169 #pragma omp parallel in foo()
171 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
175 #pragma omp parallel in foo()
177 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel' r… in foo()
181 #pragma omp parallel in foo()
183 #pragma omp target simd // OK in foo()
187 #pragma omp parallel in foo()
189 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel' … in foo()
193 #pragma omp parallel in foo()
195 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
199 #pragma omp parallel in foo()
201 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
205 #pragma omp parallel in foo()
207 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
211 #pragma omp parallel in foo()
213 #pragma omp target teams // OK in foo()
216 #pragma omp parallel in foo()
218 #pragma omp target teams distribute // OK in foo()
222 #pragma omp parallel in foo()
224 #pragma omp target teams distribute parallel for // OK in foo()
228 #pragma omp parallel in foo()
230 #pragma omp target teams distribute parallel for simd // OK in foo()
234 #pragma omp parallel in foo()
236 #pragma omp target teams distribute simd // OK in foo()
242 #pragma omp simd in foo()
244 #pragma omp for // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-e… in foo()
248 #pragma omp simd in foo()
250 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
254 #pragma omp simd in foo()
256 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
260 #pragma omp simd in foo()
262 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
266 #pragma omp simd in foo()
268 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
273 #pragma omp simd in foo()
275 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
280 #pragma omp simd in foo()
282 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
287 #pragma omp simd in foo()
289 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
294 #pragma omp simd in foo()
296 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
301 #pragma omp simd in foo()
303 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
307 #pragma omp simd in foo()
309 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
313 #pragma omp simd in foo()
315 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
320 #pragma omp simd in foo()
322 #pragma omp parallel master // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
327 #pragma omp simd in foo()
329 #pragma omp parallel masked // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
334 #pragma omp simd in foo()
336 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
341 #pragma omp simd in foo()
343 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
346 #pragma omp simd in foo()
348 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
351 #pragma omp simd in foo()
353 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
356 #pragma omp simd in foo()
358 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
361 #pragma omp simd in foo()
363 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
366 #pragma omp simd in foo()
368 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
371 #pragma omp simd in foo()
373 #pragma omp ordered simd // OK in foo()
376 #pragma omp simd in foo()
378 #pragma omp ordered threads // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
381 #pragma omp simd in foo()
383 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
386 #pragma omp simd in foo()
388 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
391 #pragma omp simd in foo()
393 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
396 #pragma omp simd in foo()
398 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
402 #pragma omp simd in foo()
404 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
407 #pragma omp simd in foo()
409 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
412 #pragma omp simd in foo()
414 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
417 #pragma omp simd in foo()
419 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
423 #pragma omp simd in foo()
425 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
429 #pragma omp simd in foo()
431 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
433 #pragma omp simd in foo()
435 #pragma omp distribute parallel for// expected-error {{OpenMP constructs may not be nested inside a… in foo()
439 #pragma omp simd in foo()
441 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
445 #pragma omp simd in foo()
447 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
451 #pragma omp simd in foo()
453 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
457 #pragma omp simd in foo()
459 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
463 #pragma omp simd in foo()
465 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
469 #pragma omp simd in foo()
471 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
475 #pragma omp simd in foo()
477 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
481 #pragma omp simd in foo()
483 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
486 #pragma omp simd in foo()
488 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
492 #pragma omp simd in foo()
494 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
498 #pragma omp simd in foo()
500 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
504 #pragma omp simd in foo()
506 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
512 #pragma omp for in foo()
514 #pragma omp for // expected-error {{region cannot be closely nested inside 'for' region; perhaps yo… in foo()
518 #pragma omp for in foo()
520 #pragma omp simd in foo()
524 #pragma omp for in foo()
526 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'for' region; perha… in foo()
530 #pragma omp for in foo()
532 #pragma omp parallel in foo()
536 #pragma omp for in foo()
538 #pragma omp sections // expected-error {{region cannot be closely nested inside 'for' region; perha… in foo()
543 #pragma omp for in foo()
545 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
550 #pragma omp for in foo()
552 #pragma omp single // expected-error {{region cannot be closely nested inside 'for' region; perhaps… in foo()
558 #pragma omp for in foo()
560 #pragma omp master // expected-error {{region cannot be closely nested inside 'for' region}} in foo()
565 #pragma omp for in foo()
567 #pragma omp critical in foo()
572 #pragma omp for in foo()
574 #pragma omp parallel in foo()
576 #pragma omp single // OK in foo()
580 #pragma omp for // OK in foo()
583 #pragma omp sections // OK in foo()
589 #pragma omp for in foo()
591 #pragma omp parallel for in foo()
595 #pragma omp for in foo()
597 #pragma omp parallel for simd in foo()
601 #pragma omp for in foo()
603 #pragma omp parallel master in foo()
608 #pragma omp for in foo()
610 #pragma omp parallel masked in foo()
615 #pragma omp for in foo()
617 #pragma omp parallel sections in foo()
622 #pragma omp for in foo()
624 #pragma omp task in foo()
629 #pragma omp for in foo()
631 #pragma omp taskyield in foo()
634 #pragma omp for in foo()
636 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'for' region}} in foo()
639 #pragma omp for in foo()
641 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'for' region; perhaps you … in foo()
644 #pragma omp for in foo()
646 #pragma omp taskwait in foo()
649 #pragma omp for in foo()
651 #pragma omp flush in foo()
654 #pragma omp for in foo()
656 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'for' region; perhap… in foo()
659 #pragma omp for ordered in foo()
661 #pragma omp ordered // OK in foo()
664 #pragma omp for in foo()
666 #pragma omp atomic in foo()
669 #pragma omp for in foo()
671 #pragma omp target in foo()
674 #pragma omp for in foo()
676 #pragma omp target parallel in foo()
679 #pragma omp for in foo()
681 #pragma omp target parallel for in foo()
685 #pragma omp for in foo()
687 #pragma omp target enter data map(to: a) in foo()
690 #pragma omp for in foo()
692 #pragma omp target exit data map(from: a) in foo()
695 #pragma omp for in foo()
697 #pragma omp teams // expected-error {{region cannot be closely nested inside 'for' region; perhaps … in foo()
700 #pragma omp for in foo()
702 #pragma omp taskloop in foo()
706 #pragma omp for in foo()
708 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'for' region; per… in foo()
712 #pragma omp for in foo()
714 #pragma omp target update to(a) in foo()
716 #pragma omp for in foo()
718 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'for… in foo()
722 #pragma omp for in foo()
724 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
728 #pragma omp for in foo()
730 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'for' region… in foo()
734 #pragma omp for in foo()
736 #pragma omp target simd // OK in foo()
740 #pragma omp for in foo()
742 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'for' regio… in foo()
746 #pragma omp for in foo()
748 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'for' … in foo()
752 #pragma omp for in foo()
754 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
758 #pragma omp for in foo()
760 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
764 #pragma omp for in foo()
766 #pragma omp target teams // OK in foo()
769 #pragma omp for in foo()
771 #pragma omp target teams distribute // OK in foo()
775 #pragma omp for in foo()
777 #pragma omp target teams distribute parallel for // OK in foo()
781 #pragma omp for in foo()
783 #pragma omp target teams distribute parallel for simd // OK in foo()
787 #pragma omp for in foo()
789 #pragma omp target teams distribute simd // OK in foo()
795 #pragma omp for simd in foo()
797 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
801 #pragma omp for simd in foo()
803 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
807 #pragma omp for simd in foo()
809 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
813 #pragma omp for simd in foo()
815 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
819 #pragma omp for simd in foo()
821 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
826 #pragma omp for simd in foo()
828 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
833 #pragma omp for simd in foo()
835 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
840 #pragma omp for simd in foo()
842 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
847 #pragma omp for simd in foo()
849 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
854 #pragma omp for simd in foo()
856 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
860 #pragma omp for simd in foo()
862 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
866 #pragma omp for simd in foo()
868 #pragma omp parallel master // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
873 #pragma omp for simd in foo()
875 #pragma omp parallel masked // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
880 #pragma omp for simd in foo()
882 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
887 #pragma omp for simd in foo()
889 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
894 #pragma omp for simd in foo()
896 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
899 #pragma omp for simd in foo()
901 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
904 #pragma omp for simd in foo()
906 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
909 #pragma omp for simd in foo()
911 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
914 #pragma omp for simd in foo()
916 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
919 #pragma omp for simd in foo()
921 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
924 #pragma omp for simd in foo()
926 #pragma omp ordered simd // OK in foo()
929 #pragma omp for simd in foo()
931 #pragma omp ordered threads // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
934 #pragma omp for simd in foo()
936 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
939 #pragma omp for simd in foo()
941 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
944 #pragma omp for simd in foo()
946 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
949 #pragma omp for simd in foo()
951 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
955 #pragma omp for simd in foo()
957 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
960 #pragma omp for simd in foo()
962 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
965 #pragma omp for simd in foo()
967 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
970 #pragma omp for simd in foo()
972 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
976 #pragma omp for simd in foo()
978 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
982 #pragma omp for simd in foo()
984 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
987 #pragma omp for simd in foo()
989 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
993 #pragma omp for simd in foo()
995 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
999 #pragma omp for simd in foo()
1001 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
1005 #pragma omp for simd in foo()
1007 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
1011 #pragma omp for simd in foo()
1013 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
1017 #pragma omp for simd in foo()
1019 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
1023 #pragma omp for simd in foo()
1025 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
1029 #pragma omp for simd in foo()
1031 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
1035 #pragma omp for simd in foo()
1037 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
1040 #pragma omp for simd in foo()
1042 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
1046 #pragma omp for simd in foo()
1048 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
1052 #pragma omp for simd in foo()
1054 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
1058 #pragma omp for simd in foo()
1060 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
1066 #pragma omp sections in foo()
1068 #pragma omp for // expected-error {{region cannot be closely nested inside 'sections' region; perha… in foo()
1072 #pragma omp sections in foo()
1074 #pragma omp simd in foo()
1078 #pragma omp sections in foo()
1080 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'sections' region; … in foo()
1084 #pragma omp sections in foo()
1086 #pragma omp parallel in foo()
1090 #pragma omp sections in foo()
1092 #pragma omp sections // expected-error {{region cannot be closely nested inside 'sections' region; … in foo()
1097 #pragma omp sections in foo()
1099 #pragma omp section in foo()
1104 #pragma omp sections in foo()
1106 #pragma omp parallel in foo()
1108 #pragma omp single // OK in foo()
1112 #pragma omp for // OK in foo()
1115 #pragma omp sections // OK in foo()
1121 #pragma omp sections in foo()
1123 #pragma omp parallel master in foo()
1128 #pragma omp sections in foo()
1130 #pragma omp parallel masked in foo()
1135 #pragma omp sections in foo()
1137 #pragma omp parallel in foo()
1139 #pragma omp master // OK in foo()
1143 #pragma omp for // OK in foo()
1146 #pragma omp master // OK in foo()
1151 #pragma omp master // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
1154 #pragma omp sections in foo()
1156 #pragma omp parallel in foo()
1158 #pragma omp critical(A) // OK in foo()
1162 #pragma omp for // OK in foo()
1165 #pragma omp critical // OK in foo()
1170 #pragma omp critical(A) // expected-error {{statement in 'omp sections' directive must be enclosed … in foo()
1173 #pragma omp sections in foo()
1175 #pragma omp parallel for in foo()
1179 #pragma omp sections in foo()
1181 #pragma omp parallel for simd in foo()
1185 #pragma omp sections in foo()
1187 #pragma omp parallel sections in foo()
1192 #pragma omp sections in foo()
1194 #pragma omp task in foo()
1199 #pragma omp sections in foo()
1201 #pragma omp taskyield in foo()
1203 #pragma omp sections in foo()
1205 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
1207 #pragma omp sections in foo()
1209 #pragma omp scan // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
1211 #pragma omp sections in foo()
1213 #pragma omp taskwait in foo()
1215 #pragma omp sections in foo()
1217 #pragma omp flush in foo()
1219 #pragma omp sections in foo()
1221 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'sections' region; p… in foo()
1224 #pragma omp sections in foo()
1226 #pragma omp atomic in foo()
1229 #pragma omp sections in foo()
1231 #pragma omp target in foo()
1234 #pragma omp sections in foo()
1236 #pragma omp target parallel in foo()
1239 #pragma omp sections in foo()
1241 #pragma omp target parallel for in foo()
1245 #pragma omp sections in foo()
1247 #pragma omp target enter data map(to: a) in foo()
1249 #pragma omp sections in foo()
1251 #pragma omp target exit data map(from: a) in foo()
1253 #pragma omp sections in foo()
1255 #pragma omp teams // expected-error {{region cannot be closely nested inside 'sections' region; per… in foo()
1258 #pragma omp sections in foo()
1260 #pragma omp taskloop in foo()
1264 #pragma omp sections in foo()
1266 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'sections' region… in foo()
1270 #pragma omp sections in foo()
1272 #pragma omp target update to(a) in foo()
1274 #pragma omp sections in foo()
1276 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sec… in foo()
1280 #pragma omp sections in foo()
1282 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
1286 #pragma omp sections in foo()
1288 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'sections' r… in foo()
1292 #pragma omp sections in foo()
1294 #pragma omp target simd // OK in foo()
1298 #pragma omp sections in foo()
1300 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'sections' … in foo()
1304 #pragma omp sections in foo()
1306 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'secti… in foo()
1310 #pragma omp sections in foo()
1312 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
1316 #pragma omp sections in foo()
1318 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
1322 #pragma omp sections in foo()
1324 #pragma omp target teams // OK in foo()
1327 #pragma omp sections in foo()
1329 #pragma omp target teams distribute // OK in foo()
1333 #pragma omp sections in foo()
1335 #pragma omp target teams distribute parallel for // OK in foo()
1339 #pragma omp sections in foo()
1341 #pragma omp target teams distribute parallel for simd // OK in foo()
1345 #pragma omp sections in foo()
1347 #pragma omp target teams distribute simd // OK in foo()
1353 #pragma omp section // expected-error {{orphaned 'omp section' directives are prohibited, it must b… in foo()
1357 #pragma omp sections in foo()
1359 #pragma omp section in foo()
1361 #pragma omp for // expected-error {{region cannot be closely nested inside 'section' region; perhap… in foo()
1366 #pragma omp sections in foo()
1368 #pragma omp section in foo()
1370 #pragma omp simd in foo()
1375 #pragma omp sections in foo()
1377 #pragma omp section in foo()
1379 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'section' region; p… in foo()
1384 #pragma omp sections in foo()
1386 #pragma omp section in foo()
1388 #pragma omp parallel in foo()
1393 #pragma omp sections in foo()
1395 #pragma omp section in foo()
1397 #pragma omp sections // expected-error {{region cannot be closely nested inside 'section' region; p… in foo()
1403 #pragma omp sections in foo()
1405 #pragma omp section in foo()
1407 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
1413 #pragma omp sections in foo()
1415 #pragma omp section in foo()
1417 #pragma omp parallel master in foo()
1419 #pragma omp critical in foo()
1423 #pragma omp sections in foo()
1425 #pragma omp section in foo()
1427 #pragma omp parallel masked in foo()
1429 #pragma omp critical in foo()
1433 #pragma omp sections in foo()
1435 #pragma omp section in foo()
1437 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; per… in foo()
1439 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
1441 #pragma omp critical in foo()
1445 #pragma omp sections in foo()
1447 #pragma omp section in foo()
1449 #pragma omp parallel in foo()
1451 #pragma omp single // OK in foo()
1455 #pragma omp for // OK in foo()
1458 #pragma omp for simd // OK in foo()
1461 #pragma omp sections // OK in foo()
1468 #pragma omp sections in foo()
1470 #pragma omp section in foo()
1472 #pragma omp parallel for in foo()
1477 #pragma omp sections in foo()
1479 #pragma omp section in foo()
1481 #pragma omp parallel for simd in foo()
1486 #pragma omp sections in foo()
1488 #pragma omp section in foo()
1490 #pragma omp parallel sections in foo()
1496 #pragma omp sections in foo()
1498 #pragma omp section in foo()
1500 #pragma omp task in foo()
1506 #pragma omp sections in foo()
1508 #pragma omp section in foo()
1510 #pragma omp taskyield in foo()
1514 #pragma omp sections in foo()
1516 #pragma omp section in foo()
1518 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
1522 #pragma omp sections in foo()
1524 #pragma omp section in foo()
1526 #pragma omp scan // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
1530 #pragma omp sections in foo()
1532 #pragma omp section in foo()
1534 #pragma omp taskwait in foo()
1538 #pragma omp sections in foo()
1540 #pragma omp section in foo()
1542 #pragma omp flush in foo()
1546 #pragma omp sections in foo()
1548 #pragma omp section in foo()
1550 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'section' region; pe… in foo()
1554 #pragma omp sections in foo()
1556 #pragma omp section in foo()
1557 #pragma omp atomic in foo()
1560 #pragma omp sections in foo()
1562 #pragma omp section in foo()
1563 #pragma omp target in foo()
1566 #pragma omp sections in foo()
1568 #pragma omp section in foo()
1569 #pragma omp target parallel in foo()
1572 #pragma omp sections in foo()
1574 #pragma omp section in foo()
1576 #pragma omp target parallel for in foo()
1581 #pragma omp sections in foo()
1583 #pragma omp section in foo()
1585 #pragma omp target enter data map(to: a) in foo()
1589 #pragma omp sections in foo()
1591 #pragma omp section in foo()
1593 #pragma omp target exit data map(from: a) in foo()
1597 #pragma omp sections in foo()
1599 #pragma omp section in foo()
1600 #pragma omp teams // expected-error {{region cannot be closely nested inside 'section' region; perh… in foo()
1603 #pragma omp sections in foo()
1605 #pragma omp section in foo()
1606 #pragma omp taskloop in foo()
1610 #pragma omp sections in foo()
1612 #pragma omp section in foo()
1613 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'section' region;… in foo()
1617 #pragma omp sections in foo()
1619 #pragma omp section in foo()
1622 #pragma omp target update to(a) in foo()
1625 #pragma omp sections in foo()
1627 #pragma omp section in foo()
1628 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sec… in foo()
1632 #pragma omp sections in foo()
1634 #pragma omp section in foo()
1635 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
1639 #pragma omp sections in foo()
1641 #pragma omp section in foo()
1642 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'section' re… in foo()
1646 #pragma omp sections in foo()
1648 #pragma omp section in foo()
1649 #pragma omp target simd // OK in foo()
1653 #pragma omp sections in foo()
1655 #pragma omp section in foo()
1656 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'section' r… in foo()
1660 #pragma omp sections in foo()
1662 #pragma omp section in foo()
1663 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'secti… in foo()
1667 #pragma omp sections in foo()
1669 #pragma omp section in foo()
1670 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
1674 #pragma omp sections in foo()
1676 #pragma omp section in foo()
1677 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
1681 #pragma omp sections in foo()
1683 #pragma omp section in foo()
1684 #pragma omp target teams // OK in foo()
1687 #pragma omp sections in foo()
1689 #pragma omp section in foo()
1690 #pragma omp target teams distribute // OK in foo()
1694 #pragma omp sections in foo()
1696 #pragma omp section in foo()
1697 #pragma omp target teams distribute parallel for // OK in foo()
1701 #pragma omp sections in foo()
1703 #pragma omp section in foo()
1704 #pragma omp target teams distribute parallel for simd // OK in foo()
1708 #pragma omp sections in foo()
1710 #pragma omp section in foo()
1711 #pragma omp target teams distribute simd // OK in foo()
1717 #pragma omp single in foo()
1719 #pragma omp for // expected-error {{region cannot be closely nested inside 'single' region; perhaps… in foo()
1723 #pragma omp single in foo()
1725 #pragma omp simd in foo()
1729 #pragma omp single in foo()
1731 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'single' region; pe… in foo()
1735 #pragma omp single in foo()
1737 #pragma omp parallel in foo()
1741 #pragma omp single in foo()
1743 #pragma omp single // expected-error {{region cannot be closely nested inside 'single' region; perh… in foo()
1748 #pragma omp single in foo()
1750 #pragma omp master // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
1755 #pragma omp single in foo()
1757 #pragma omp parallel master in foo()
1762 #pragma omp single in foo()
1764 #pragma omp parallel masked in foo()
1769 #pragma omp single in foo()
1771 #pragma omp critical in foo()
1776 #pragma omp single in foo()
1778 #pragma omp sections // expected-error {{region cannot be closely nested inside 'single' region; pe… in foo()
1783 #pragma omp single in foo()
1785 #pragma omp parallel in foo()
1787 #pragma omp single // OK in foo()
1791 #pragma omp for // OK in foo()
1794 #pragma omp for simd // OK in foo()
1797 #pragma omp sections // OK in foo()
1803 #pragma omp single in foo()
1805 #pragma omp parallel for in foo()
1809 #pragma omp single in foo()
1811 #pragma omp parallel for simd in foo()
1815 #pragma omp single in foo()
1817 #pragma omp parallel sections in foo()
1822 #pragma omp single in foo()
1824 #pragma omp task in foo()
1829 #pragma omp single in foo()
1831 #pragma omp taskyield in foo()
1834 #pragma omp single in foo()
1836 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
1839 #pragma omp single in foo()
1841 #pragma omp scan // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
1844 #pragma omp single in foo()
1846 #pragma omp taskwait in foo()
1849 #pragma omp single in foo()
1851 #pragma omp flush in foo()
1854 #pragma omp single in foo()
1856 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'single' region; per… in foo()
1859 #pragma omp single in foo()
1861 #pragma omp atomic in foo()
1864 #pragma omp single in foo()
1866 #pragma omp target in foo()
1869 #pragma omp single in foo()
1871 #pragma omp target parallel in foo()
1874 #pragma omp single in foo()
1876 #pragma omp target parallel for in foo()
1880 #pragma omp single in foo()
1882 #pragma omp target enter data map(to: a) in foo()
1885 #pragma omp single in foo()
1887 #pragma omp target exit data map(from: a) in foo()
1890 #pragma omp single in foo()
1892 #pragma omp teams // expected-error {{region cannot be closely nested inside 'single' region; perha… in foo()
1895 #pragma omp single in foo()
1897 #pragma omp taskloop in foo()
1901 #pragma omp single in foo()
1903 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'single' region; … in foo()
1907 #pragma omp single in foo()
1909 #pragma omp target update to(a) in foo()
1912 #pragma omp single in foo()
1914 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sin… in foo()
1918 #pragma omp single in foo()
1920 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
1924 #pragma omp single in foo()
1926 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'single' reg… in foo()
1930 #pragma omp single in foo()
1932 #pragma omp target simd // OK in foo()
1936 #pragma omp single in foo()
1938 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'single' re… in foo()
1942 #pragma omp single in foo()
1944 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'singl… in foo()
1948 #pragma omp single in foo()
1950 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
1954 #pragma omp single in foo()
1956 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
1960 #pragma omp single in foo()
1962 #pragma omp target teams // OK in foo()
1965 #pragma omp single in foo()
1967 #pragma omp target teams distribute // OK in foo()
1971 #pragma omp single in foo()
1973 #pragma omp target teams distribute parallel for // OK in foo()
1977 #pragma omp single in foo()
1979 #pragma omp target teams distribute parallel for simd // OK in foo()
1983 #pragma omp single in foo()
1985 #pragma omp target teams distribute simd // OK in foo()
1991 #pragma omp master in foo()
1993 #pragma omp for // expected-error {{region cannot be closely nested inside 'master' region; perhaps… in foo()
1997 #pragma omp master in foo()
1999 #pragma omp simd in foo()
2003 #pragma omp master in foo()
2005 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'master' region; pe… in foo()
2009 #pragma omp master in foo()
2011 #pragma omp parallel in foo()
2015 #pragma omp master in foo()
2017 #pragma omp single // expected-error {{region cannot be closely nested inside 'master' region; perh… in foo()
2022 #pragma omp master in foo()
2024 #pragma omp master // OK, though second 'master' is redundant in foo()
2029 #pragma omp master in foo()
2031 #pragma omp critical in foo()
2036 #pragma omp master in foo()
2038 #pragma omp sections // expected-error {{region cannot be closely nested inside 'master' region; pe… in foo()
2043 #pragma omp master in foo()
2045 #pragma omp parallel in foo()
2047 #pragma omp master // OK in foo()
2051 #pragma omp for // OK in foo()
2054 #pragma omp for simd // OK in foo()
2057 #pragma omp sections // OK in foo()
2063 #pragma omp master in foo()
2065 #pragma omp parallel master // OK in foo()
2069 #pragma omp parallel in foo()
2071 #pragma omp for // OK in foo()
2074 #pragma omp for simd // OK in foo()
2077 #pragma omp sections // OK in foo()
2083 #pragma omp master in foo()
2085 #pragma omp parallel for in foo()
2089 #pragma omp master in foo()
2091 #pragma omp parallel for simd in foo()
2095 #pragma omp master in foo()
2097 #pragma omp parallel sections in foo()
2102 #pragma omp master in foo()
2104 #pragma omp task in foo()
2109 #pragma omp master in foo()
2111 #pragma omp taskyield in foo()
2114 #pragma omp master in foo()
2116 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'master' region}} in foo()
2119 #pragma omp master in foo()
2121 #pragma omp scan // expected-error {{region cannot be closely nested inside 'master' region}} in foo()
2124 #pragma omp master in foo()
2126 #pragma omp taskwait in foo()
2129 #pragma omp master in foo()
2131 #pragma omp flush in foo()
2134 #pragma omp master in foo()
2136 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'master' region; per… in foo()
2139 #pragma omp master in foo()
2141 #pragma omp atomic in foo()
2144 #pragma omp master in foo()
2146 #pragma omp target in foo()
2149 #pragma omp master in foo()
2151 #pragma omp target parallel in foo()
2154 #pragma omp master in foo()
2156 #pragma omp target parallel for in foo()
2160 #pragma omp master in foo()
2162 #pragma omp target enter data map(to: a) in foo()
2165 #pragma omp master in foo()
2167 #pragma omp target exit data map(from: a) in foo()
2170 #pragma omp master in foo()
2172 #pragma omp teams // expected-error {{region cannot be closely nested inside 'master' region; perha… in foo()
2175 #pragma omp master in foo()
2177 #pragma omp taskloop in foo()
2181 #pragma omp master in foo()
2183 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'master' region; … in foo()
2187 #pragma omp master in foo()
2189 #pragma omp target update to(a) in foo()
2192 #pragma omp master in foo()
2194 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'mas… in foo()
2198 #pragma omp master in foo()
2200 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
2204 #pragma omp master in foo()
2206 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'master' reg… in foo()
2210 #pragma omp master in foo()
2212 #pragma omp target simd // OK in foo()
2216 #pragma omp master in foo()
2218 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'master' re… in foo()
2222 #pragma omp master in foo()
2224 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'maste… in foo()
2228 #pragma omp master in foo()
2230 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
2234 #pragma omp master in foo()
2236 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
2240 #pragma omp master in foo()
2242 #pragma omp target teams // OK in foo()
2245 #pragma omp master in foo()
2247 #pragma omp target teams distribute // OK in foo()
2251 #pragma omp master in foo()
2253 #pragma omp target teams distribute parallel for // OK in foo()
2257 #pragma omp master in foo()
2259 #pragma omp target teams distribute parallel for simd // OK in foo()
2263 #pragma omp master in foo()
2265 #pragma omp target teams distribute simd // OK in foo()
2271 #pragma omp critical in foo()
2273 #pragma omp for // expected-error {{region cannot be closely nested inside 'critical' region; perha… in foo()
2277 #pragma omp critical in foo()
2279 #pragma omp simd in foo()
2283 #pragma omp critical in foo()
2285 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'critical' region; … in foo()
2289 #pragma omp critical in foo()
2291 #pragma omp parallel in foo()
2295 #pragma omp critical in foo()
2297 #pragma omp single // expected-error {{region cannot be closely nested inside 'critical' region; pe… in foo()
2302 #pragma omp critical in foo()
2304 #pragma omp master // OK, though second 'master' is redundant in foo()
2309 #pragma omp critical in foo()
2311 #pragma omp critical in foo()
2316 #pragma omp critical in foo()
2318 #pragma omp sections // expected-error {{region cannot be closely nested inside 'critical' region; … in foo()
2323 #pragma omp critical in foo()
2325 #pragma omp parallel in foo()
2327 #pragma omp master // OK in foo()
2331 #pragma omp for // OK in foo()
2334 #pragma omp for simd // OK in foo()
2337 #pragma omp sections // OK in foo()
2343 #pragma omp critical in foo()
2345 #pragma omp parallel master in foo()
2350 #pragma omp critical in foo()
2352 #pragma omp parallel masked in foo()
2357 #pragma omp critical in foo()
2359 #pragma omp parallel for in foo()
2363 #pragma omp critical in foo()
2365 #pragma omp parallel for simd in foo()
2369 #pragma omp critical in foo()
2371 #pragma omp parallel sections in foo()
2376 #pragma omp critical in foo()
2378 #pragma omp task in foo()
2383 #pragma omp critical in foo()
2385 #pragma omp taskyield in foo()
2388 #pragma omp critical in foo()
2390 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'critical' region}} in foo()
2393 #pragma omp critical in foo()
2395 #pragma omp scan // expected-error {{region cannot be closely nested inside 'critical' region}} in foo()
2398 #pragma omp critical in foo()
2400 #pragma omp taskwait in foo()
2403 #pragma omp critical(Tuzik) in foo()
2405 #pragma omp critical(grelka) in foo()
2408 #pragma omp critical(Belka) // expected-note {{previous 'critical' region starts here}} in foo()
2410 #pragma omp critical(Belka) // expected-error {{cannot nest 'critical' regions having the same name… in foo()
2412 #pragma omp critical(Tuzik) in foo()
2414 #pragma omp parallel in foo()
2415 #pragma omp critical(grelka) in foo()
2422 #pragma omp critical in foo()
2424 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'critical' region; p… in foo()
2427 #pragma omp critical in foo()
2429 #pragma omp atomic in foo()
2432 #pragma omp critical in foo()
2434 #pragma omp target in foo()
2437 #pragma omp critical in foo()
2439 #pragma omp target parallel in foo()
2442 #pragma omp critical in foo()
2444 #pragma omp target parallel for in foo()
2448 #pragma omp critical in foo()
2450 #pragma omp target enter data map(to: a) in foo()
2453 #pragma omp critical in foo()
2455 #pragma omp target exit data map(from: a) in foo()
2458 #pragma omp critical in foo()
2460 #pragma omp teams // expected-error {{region cannot be closely nested inside 'critical' region; per… in foo()
2463 #pragma omp critical in foo()
2465 #pragma omp taskloop in foo()
2469 #pragma omp critical in foo()
2471 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'critical' region… in foo()
2475 #pragma omp critical in foo()
2477 #pragma omp target update to(a) in foo()
2480 #pragma omp critical in foo()
2482 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'cri… in foo()
2486 #pragma omp critical in foo()
2488 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
2492 #pragma omp critical in foo()
2494 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'critical' r… in foo()
2498 #pragma omp critical in foo()
2500 #pragma omp target simd // OK in foo()
2504 #pragma omp critical in foo()
2506 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'critical' … in foo()
2510 #pragma omp critical in foo()
2512 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'criti… in foo()
2516 #pragma omp critical in foo()
2518 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
2522 #pragma omp critical in foo()
2524 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
2528 #pragma omp critical in foo()
2530 #pragma omp target teams // OK in foo()
2533 #pragma omp critical in foo()
2535 #pragma omp target teams distribute // OK in foo()
2539 #pragma omp critical in foo()
2541 #pragma omp target teams distribute parallel for // OK in foo()
2545 #pragma omp critical in foo()
2547 #pragma omp target teams distribute parallel for simd // OK in foo()
2551 #pragma omp critical in foo()
2553 #pragma omp target teams distribute simd // OK in foo()
2559 #pragma omp parallel for in foo()
2561 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel for' region; p… in foo()
2565 #pragma omp parallel for in foo()
2567 #pragma omp simd in foo()
2571 #pragma omp parallel for in foo()
2573 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel for' regi… in foo()
2577 #pragma omp parallel for in foo()
2579 #pragma omp parallel in foo()
2583 #pragma omp parallel for in foo()
2585 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel for' regi… in foo()
2590 #pragma omp parallel for in foo()
2592 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
2597 #pragma omp parallel for in foo()
2599 #pragma omp single // expected-error {{region cannot be closely nested inside 'parallel for' region… in foo()
2605 #pragma omp parallel for in foo()
2607 #pragma omp master // expected-error {{region cannot be closely nested inside 'parallel for' region… in foo()
2613 #pragma omp parallel for in foo()
2615 #pragma omp critical in foo()
2621 #pragma omp parallel for in foo()
2623 #pragma omp parallel in foo()
2625 #pragma omp single // OK in foo()
2629 #pragma omp for // OK in foo()
2632 #pragma omp for simd // OK in foo()
2635 #pragma omp sections // OK in foo()
2641 #pragma omp parallel for in foo()
2643 #pragma omp parallel for in foo()
2647 #pragma omp parallel for in foo()
2649 #pragma omp parallel for simd in foo()
2653 #pragma omp parallel for in foo()
2655 #pragma omp parallel sections in foo()
2660 #pragma omp parallel for in foo()
2662 #pragma omp task in foo()
2667 #pragma omp parallel for in foo()
2669 #pragma omp taskyield in foo()
2672 #pragma omp parallel for in foo()
2674 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel for' regio… in foo()
2677 #pragma omp parallel for in foo()
2679 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'parallel for' region}} om… in foo()
2682 #pragma omp parallel for in foo()
2684 #pragma omp taskwait in foo()
2687 #pragma omp parallel for in foo()
2689 #pragma omp flush in foo()
2692 #pragma omp parallel for in foo()
2694 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel for' regio… in foo()
2697 #pragma omp parallel for ordered in foo()
2699 #pragma omp ordered // OK in foo()
2702 #pragma omp parallel for in foo()
2704 #pragma omp atomic in foo()
2707 #pragma omp parallel for in foo()
2709 #pragma omp target in foo()
2712 #pragma omp parallel for in foo()
2714 #pragma omp target parallel in foo()
2717 #pragma omp parallel for in foo()
2719 #pragma omp target parallel for in foo()
2723 #pragma omp parallel for in foo()
2725 #pragma omp target enter data map(to: a) in foo()
2728 #pragma omp parallel for in foo()
2730 #pragma omp target exit data map(from: a) in foo()
2733 #pragma omp parallel for in foo()
2735 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel for' region;… in foo()
2738 #pragma omp parallel for in foo()
2740 #pragma omp taskloop in foo()
2744 #pragma omp parallel for in foo()
2746 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel for' re… in foo()
2750 #pragma omp parallel for in foo()
2752 #pragma omp target update to(a) in foo()
2754 #pragma omp parallel for in foo()
2756 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
2760 #pragma omp parallel for in foo()
2762 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
2766 #pragma omp parallel for in foo()
2768 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel fo… in foo()
2772 #pragma omp parallel for in foo()
2774 #pragma omp target simd // OK in foo()
2778 #pragma omp parallel for in foo()
2780 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel f… in foo()
2784 #pragma omp parallel for in foo()
2786 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
2790 #pragma omp parallel for in foo()
2792 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
2796 #pragma omp parallel for in foo()
2798 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
2802 #pragma omp parallel for in foo()
2804 #pragma omp target teams // OK in foo()
2807 #pragma omp parallel for in foo()
2809 #pragma omp target teams distribute // OK in foo()
2813 #pragma omp parallel for in foo()
2815 #pragma omp target teams distribute parallel for // OK in foo()
2819 #pragma omp parallel for in foo()
2821 #pragma omp target teams distribute parallel for simd // OK in foo()
2825 #pragma omp parallel for in foo()
2827 #pragma omp target teams distribute simd // OK in foo()
2833 #pragma omp parallel for simd in foo()
2835 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2839 #pragma omp parallel for simd in foo()
2841 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
2845 #pragma omp parallel for simd in foo()
2847 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2851 #pragma omp parallel for simd in foo()
2853 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2857 #pragma omp parallel for simd in foo()
2859 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2864 #pragma omp parallel for simd in foo()
2866 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2871 #pragma omp parallel for simd in foo()
2873 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2879 #pragma omp parallel for simd in foo()
2881 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2887 #pragma omp parallel for simd in foo()
2889 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2895 #pragma omp parallel for simd in foo()
2897 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2899 #pragma omp single in foo()
2903 #pragma omp for in foo()
2906 #pragma omp for simd in foo()
2909 #pragma omp sections in foo()
2915 #pragma omp parallel for simd in foo()
2917 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
2921 #pragma omp parallel for simd in foo()
2923 #pragma omp parallel for simd// expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
2927 #pragma omp parallel for simd in foo()
2929 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
2934 #pragma omp parallel for simd in foo()
2936 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2941 #pragma omp parallel for simd in foo()
2943 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2946 #pragma omp parallel for simd in foo()
2948 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2951 #pragma omp parallel for simd in foo()
2953 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
2956 #pragma omp parallel for simd in foo()
2958 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2961 #pragma omp parallel for simd in foo()
2963 #pragma omp flush // 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 ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2971 #pragma omp parallel for simd in foo()
2973 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2976 #pragma omp parallel for simd in foo()
2978 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2981 #pragma omp parallel for simd in foo()
2983 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
2986 #pragma omp parallel for simd in foo()
2988 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
2991 #pragma omp parallel for simd in foo()
2993 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
2997 #pragma omp parallel for simd in foo()
2999 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
3002 #pragma omp parallel for simd in foo()
3004 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
3007 #pragma omp parallel for simd in foo()
3009 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
3012 #pragma omp parallel for simd in foo()
3014 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
3018 #pragma omp parallel for simd in foo()
3020 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
3024 #pragma omp parallel for simd in foo()
3026 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
3029 #pragma omp parallel for simd in foo()
3031 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
3035 #pragma omp parallel for simd in foo()
3037 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
3041 #pragma omp parallel for simd in foo()
3043 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
3047 #pragma omp parallel for simd in foo()
3049 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
3053 #pragma omp parallel for simd in foo()
3055 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
3059 #pragma omp parallel for simd in foo()
3061 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
3065 #pragma omp parallel for simd in foo()
3067 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
3071 #pragma omp parallel for simd in foo()
3073 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
3077 #pragma omp parallel for simd in foo()
3079 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
3082 #pragma omp parallel for simd in foo()
3084 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
3088 #pragma omp parallel for simd in foo()
3090 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
3094 #pragma omp parallel for simd in foo()
3096 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
3100 #pragma omp parallel for simd in foo()
3102 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
3108 #pragma omp parallel master in foo()
3110 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel master' region… in foo()
3114 #pragma omp parallel master in foo()
3116 #pragma omp simd in foo()
3120 #pragma omp parallel master in foo()
3122 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel master' r… in foo()
3126 #pragma omp parallel master in foo()
3128 #pragma omp parallel in foo()
3132 #pragma omp parallel master in foo()
3134 #pragma omp single // expected-error {{region cannot be closely nested inside 'parallel master' reg… in foo()
3139 #pragma omp parallel master in foo()
3141 #pragma omp master // OK, though second 'master' is redundant in foo()
3146 #pragma omp parallel master in foo()
3148 #pragma omp critical in foo()
3153 #pragma omp parallel master in foo()
3155 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel master' r… in foo()
3160 #pragma omp parallel master in foo()
3162 #pragma omp parallel in foo()
3164 #pragma omp parallel master // OK in foo()
3168 #pragma omp for // OK in foo()
3171 #pragma omp for simd // OK in foo()
3174 #pragma omp sections // OK in foo()
3180 #pragma omp parallel master in foo()
3182 #pragma omp parallel master // OK in foo()
3186 #pragma omp parallel in foo()
3188 #pragma omp for // OK in foo()
3191 #pragma omp for simd // OK in foo()
3194 #pragma omp sections // OK in foo()
3200 #pragma omp parallel master in foo()
3202 #pragma omp parallel for in foo()
3206 #pragma omp parallel master in foo()
3208 #pragma omp parallel for simd in foo()
3212 #pragma omp parallel master in foo()
3214 #pragma omp parallel sections in foo()
3219 #pragma omp parallel master in foo()
3221 #pragma omp task in foo()
3226 #pragma omp parallel master in foo()
3228 #pragma omp taskyield in foo()
3231 #pragma omp parallel master in foo()
3233 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel master' re… in foo()
3236 #pragma omp parallel master in foo()
3238 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel master' regio… in foo()
3241 #pragma omp parallel master in foo()
3243 #pragma omp taskwait in foo()
3246 #pragma omp parallel master in foo()
3248 #pragma omp flush in foo()
3251 #pragma omp parallel master in foo()
3253 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel master' re… in foo()
3256 #pragma omp parallel master in foo()
3258 #pragma omp atomic in foo()
3261 #pragma omp parallel master in foo()
3263 #pragma omp target in foo()
3266 #pragma omp parallel master in foo()
3268 #pragma omp target parallel in foo()
3271 #pragma omp parallel master in foo()
3273 #pragma omp target parallel for in foo()
3277 #pragma omp parallel master in foo()
3279 #pragma omp target enter data map(to: a) in foo()
3282 #pragma omp parallel master in foo()
3284 #pragma omp target exit data map(from: a) in foo()
3287 #pragma omp parallel master in foo()
3289 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel master' regi… in foo()
3292 #pragma omp parallel master in foo()
3294 #pragma omp taskloop in foo()
3298 #pragma omp parallel master in foo()
3300 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel master'… in foo()
3304 #pragma omp parallel master in foo()
3306 #pragma omp target update to(a) in foo()
3309 #pragma omp parallel master in foo()
3311 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
3315 #pragma omp parallel master in foo()
3317 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
3321 #pragma omp parallel master in foo()
3323 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel ma… in foo()
3327 #pragma omp parallel master in foo()
3329 #pragma omp target simd // OK in foo()
3333 #pragma omp parallel master in foo()
3335 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel m… in foo()
3339 #pragma omp parallel master in foo()
3341 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
3345 #pragma omp parallel master in foo()
3347 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
3351 #pragma omp parallel master in foo()
3353 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
3357 #pragma omp parallel master in foo()
3359 #pragma omp target teams // OK in foo()
3362 #pragma omp parallel master in foo()
3364 #pragma omp target teams distribute // OK in foo()
3368 #pragma omp parallel master in foo()
3370 #pragma omp target teams distribute parallel for // OK in foo()
3374 #pragma omp parallel master in foo()
3376 #pragma omp target teams distribute parallel for simd // OK in foo()
3380 #pragma omp parallel master in foo()
3382 #pragma omp target teams distribute simd // OK in foo()
3388 #pragma omp parallel masked in foo()
3390 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel masked' region… in foo()
3394 #pragma omp parallel masked in foo()
3396 #pragma omp simd in foo()
3400 #pragma omp parallel masked in foo()
3402 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel masked' r… in foo()
3406 #pragma omp parallel masked in foo()
3408 #pragma omp parallel in foo()
3412 #pragma omp parallel masked in foo()
3414 #pragma omp single // expected-error {{region cannot be closely nested inside 'parallel masked' reg… in foo()
3419 #pragma omp parallel masked in foo()
3421 #pragma omp master // OK, though second 'master' is redundant in foo()
3426 #pragma omp parallel masked in foo()
3428 #pragma omp critical in foo()
3433 #pragma omp parallel masked in foo()
3435 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel masked' r… in foo()
3440 #pragma omp parallel master in foo()
3442 #pragma omp parallel in foo()
3444 #pragma omp parallel master // OK in foo()
3448 #pragma omp for // OK in foo()
3451 #pragma omp for simd // OK in foo()
3454 #pragma omp sections // OK in foo()
3460 #pragma omp parallel master in foo()
3462 #pragma omp parallel master // OK in foo()
3466 #pragma omp parallel in foo()
3468 #pragma omp for // OK in foo()
3471 #pragma omp for simd // OK in foo()
3474 #pragma omp sections // OK in foo()
3480 #pragma omp parallel master in foo()
3482 #pragma omp parallel for in foo()
3486 #pragma omp parallel master in foo()
3488 #pragma omp parallel for simd in foo()
3492 #pragma omp parallel master in foo()
3494 #pragma omp parallel sections in foo()
3499 #pragma omp parallel master in foo()
3501 #pragma omp task in foo()
3506 #pragma omp parallel master in foo()
3508 #pragma omp taskyield in foo()
3511 #pragma omp parallel master in foo()
3513 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel master' re… in foo()
3516 #pragma omp parallel master in foo()
3518 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel master' regio… in foo()
3521 #pragma omp parallel master in foo()
3523 #pragma omp taskwait in foo()
3526 #pragma omp parallel master in foo()
3528 #pragma omp flush in foo()
3531 #pragma omp parallel master in foo()
3533 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel master' re… in foo()
3536 #pragma omp parallel master in foo()
3538 #pragma omp atomic in foo()
3541 #pragma omp parallel master in foo()
3543 #pragma omp target in foo()
3546 #pragma omp parallel master in foo()
3548 #pragma omp target parallel in foo()
3551 #pragma omp parallel master in foo()
3553 #pragma omp target parallel for in foo()
3557 #pragma omp parallel master in foo()
3559 #pragma omp target enter data map(to: a) in foo()
3562 #pragma omp parallel master in foo()
3564 #pragma omp target exit data map(from: a) in foo()
3567 #pragma omp parallel master in foo()
3569 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel master' regi… in foo()
3572 #pragma omp parallel master in foo()
3574 #pragma omp taskloop in foo()
3578 #pragma omp parallel master in foo()
3580 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel master'… in foo()
3584 #pragma omp parallel master in foo()
3586 #pragma omp target update to(a) in foo()
3589 #pragma omp parallel master in foo()
3591 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
3595 #pragma omp parallel master in foo()
3597 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
3601 #pragma omp parallel master in foo()
3603 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel ma… in foo()
3607 #pragma omp parallel master in foo()
3609 #pragma omp target simd // OK in foo()
3613 #pragma omp parallel master in foo()
3615 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel m… in foo()
3619 #pragma omp parallel master in foo()
3621 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
3625 #pragma omp parallel master in foo()
3627 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
3631 #pragma omp parallel master in foo()
3633 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
3637 #pragma omp parallel master in foo()
3639 #pragma omp target teams // OK in foo()
3642 #pragma omp parallel master in foo()
3644 #pragma omp target teams distribute // OK in foo()
3648 #pragma omp parallel master in foo()
3650 #pragma omp target teams distribute parallel for // OK in foo()
3654 #pragma omp parallel master in foo()
3656 #pragma omp target teams distribute parallel for simd // OK in foo()
3660 #pragma omp parallel master in foo()
3662 #pragma omp target teams distribute simd // OK in foo()
3667 #pragma omp parallel sections in foo()
3669 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel sections' regi… in foo()
3673 #pragma omp parallel sections in foo()
3675 #pragma omp simd in foo()
3679 #pragma omp parallel sections in foo()
3681 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel sections'… in foo()
3685 #pragma omp parallel sections in foo()
3687 #pragma omp parallel in foo()
3691 #pragma omp parallel sections in foo()
3693 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel sections'… in foo()
3698 #pragma omp parallel sections in foo()
3700 #pragma omp section in foo()
3705 #pragma omp parallel sections in foo()
3707 #pragma omp section in foo()
3709 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; per… in foo()
3713 #pragma omp parallel sections in foo()
3715 #pragma omp section in foo()
3717 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
3721 #pragma omp parallel sections in foo()
3723 #pragma omp section in foo()
3725 #pragma omp critical in foo()
3729 #pragma omp parallel sections in foo()
3731 #pragma omp parallel in foo()
3733 #pragma omp single // OK in foo()
3737 #pragma omp for // OK in foo()
3740 #pragma omp for simd // OK in foo()
3743 #pragma omp sections // OK in foo()
3749 #pragma omp parallel sections in foo()
3751 #pragma omp parallel for in foo()
3755 #pragma omp parallel sections in foo()
3757 #pragma omp parallel for simd in foo()
3761 #pragma omp parallel sections in foo()
3763 #pragma omp parallel sections in foo()
3768 #pragma omp parallel sections in foo()
3770 #pragma omp task in foo()
3775 #pragma omp parallel sections in foo()
3777 #pragma omp taskyield in foo()
3779 #pragma omp parallel sections in foo()
3781 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel sections' … in foo()
3783 #pragma omp parallel sections in foo()
3785 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel sections' reg… in foo()
3787 #pragma omp parallel sections in foo()
3789 #pragma omp taskwait in foo()
3791 #pragma omp parallel sections in foo()
3793 #pragma omp flush in foo()
3795 #pragma omp parallel sections in foo()
3797 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel sections' … in foo()
3800 #pragma omp parallel sections in foo()
3802 #pragma omp atomic in foo()
3805 #pragma omp parallel sections in foo()
3807 #pragma omp target in foo()
3810 #pragma omp parallel sections in foo()
3812 #pragma omp target parallel in foo()
3815 #pragma omp parallel sections in foo()
3817 #pragma omp target parallel for in foo()
3821 #pragma omp parallel sections in foo()
3823 #pragma omp target enter data map(to: a) in foo()
3825 #pragma omp parallel sections in foo()
3827 #pragma omp target exit data map(from: a) in foo()
3829 #pragma omp parallel sections in foo()
3831 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel sections' re… in foo()
3834 #pragma omp parallel sections in foo()
3836 #pragma omp taskloop in foo()
3840 #pragma omp parallel sections in foo()
3842 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel section… in foo()
3846 #pragma omp parallel sections in foo()
3848 #pragma omp target update to(a) in foo()
3850 #pragma omp parallel sections in foo()
3852 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
3856 #pragma omp parallel sections in foo()
3858 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
3862 #pragma omp parallel sections in foo()
3864 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel se… in foo()
3868 #pragma omp parallel sections in foo()
3870 #pragma omp target simd // OK in foo()
3874 #pragma omp parallel sections in foo()
3876 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel s… in foo()
3880 #pragma omp parallel sections in foo()
3882 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
3886 #pragma omp parallel sections in foo()
3888 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
3892 #pragma omp parallel sections in foo()
3894 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
3898 #pragma omp parallel sections in foo()
3900 #pragma omp target teams // OK in foo()
3903 #pragma omp parallel sections in foo()
3905 #pragma omp target teams distribute // OK in foo()
3909 #pragma omp parallel sections in foo()
3911 #pragma omp target teams distribute parallel for // OK in foo()
3915 #pragma omp parallel sections in foo()
3917 #pragma omp target teams distribute parallel for simd // OK in foo()
3921 #pragma omp parallel sections in foo()
3923 #pragma omp target teams distribute simd // OK in foo()
3929 #pragma omp task in foo()
3930 #pragma omp for // expected-error {{region cannot be closely nested inside 'task' region; perhaps y… in foo()
3933 #pragma omp task in foo()
3934 #pragma omp simd in foo()
3937 #pragma omp task in foo()
3938 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'task' region; perh… in foo()
3941 #pragma omp task in foo()
3942 #pragma omp sections // expected-error {{region cannot be closely nested inside 'task' region; perh… in foo()
3946 #pragma omp task in foo()
3947 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
3951 #pragma omp task in foo()
3952 #pragma omp single // expected-error {{region cannot be closely nested inside 'task' region; perhap… in foo()
3954 #pragma omp task in foo()
3955 #pragma omp master // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
3957 #pragma omp task in foo()
3958 #pragma omp critical in foo()
3961 #pragma omp task in foo()
3962 #pragma omp parallel for in foo()
3965 #pragma omp task in foo()
3966 #pragma omp parallel for simd in foo()
3969 #pragma omp task in foo()
3970 #pragma omp parallel sections in foo()
3974 #pragma omp task in foo()
3975 #pragma omp task in foo()
3979 #pragma omp task in foo()
3981 #pragma omp taskyield in foo()
3984 #pragma omp task in foo()
3986 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
3989 #pragma omp task in foo()
3991 #pragma omp scan // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
3994 #pragma omp task in foo()
3996 #pragma omp taskwait in foo()
3999 #pragma omp task in foo()
4001 #pragma omp flush in foo()
4004 #pragma omp task in foo()
4006 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'task' region; perha… in foo()
4009 #pragma omp task in foo()
4011 #pragma omp atomic in foo()
4014 #pragma omp task in foo()
4016 #pragma omp target in foo()
4019 #pragma omp task in foo()
4021 #pragma omp target parallel in foo()
4024 #pragma omp task in foo()
4025 #pragma omp target parallel for in foo()
4028 #pragma omp task in foo()
4030 #pragma omp target enter data map(to: a) in foo()
4033 #pragma omp task in foo()
4035 #pragma omp target exit data map(from: a) in foo()
4038 #pragma omp task in foo()
4040 #pragma omp teams // expected-error {{region cannot be closely nested inside 'task' region; perhaps… in foo()
4043 #pragma omp task in foo()
4045 #pragma omp taskloop in foo()
4049 #pragma omp task in foo()
4051 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'task' region; pe… in foo()
4055 #pragma omp task in foo()
4057 #pragma omp target update to(a) in foo()
4060 #pragma omp task in foo()
4062 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tas… in foo()
4066 #pragma omp task in foo()
4068 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
4072 #pragma omp task in foo()
4074 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'task' regio… in foo()
4078 #pragma omp task in foo()
4080 #pragma omp target simd // OK in foo()
4084 #pragma omp task in foo()
4086 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'task' regi… in foo()
4090 #pragma omp task in foo()
4092 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'task'… in foo()
4096 #pragma omp task in foo()
4098 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
4102 #pragma omp task in foo()
4104 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
4108 #pragma omp task in foo()
4110 #pragma omp target teams // OK in foo()
4113 #pragma omp task in foo()
4115 #pragma omp target teams distribute // OK in foo()
4119 #pragma omp task in foo()
4121 #pragma omp target teams distribute parallel for // OK in foo()
4125 #pragma omp task in foo()
4127 #pragma omp target teams distribute parallel for simd // OK in foo()
4131 #pragma omp task in foo()
4133 #pragma omp target teams distribute simd // OK in foo()
4139 #pragma omp ordered in foo()
4141 #pragma omp for // expected-error {{region cannot be closely nested inside 'ordered' region; perhap… in foo()
4145 #pragma omp ordered in foo()
4147 #pragma omp simd in foo()
4151 #pragma omp ordered in foo()
4153 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'ordered' region; p… in foo()
4157 #pragma omp ordered in foo()
4159 #pragma omp parallel in foo()
4163 #pragma omp ordered in foo()
4165 #pragma omp single // expected-error {{region cannot be closely nested inside 'ordered' region; per… in foo()
4170 #pragma omp ordered in foo()
4172 #pragma omp master // OK, though second 'ordered' is redundant in foo()
4177 #pragma omp ordered in foo()
4179 #pragma omp critical in foo()
4184 #pragma omp ordered in foo()
4186 #pragma omp sections // expected-error {{region cannot be closely nested inside 'ordered' region; p… in foo()
4191 #pragma omp ordered in foo()
4193 #pragma omp parallel for ordered in foo()
4195 #pragma omp ordered // OK in foo()
4201 #pragma omp ordered in foo()
4203 #pragma omp parallel for simd ordered in foo()
4205 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
4211 #pragma omp ordered in foo()
4213 #pragma omp parallel for simd ordered in foo()
4215 #pragma omp ordered simd in foo()
4221 #pragma omp ordered in foo()
4223 #pragma omp parallel for in foo()
4227 #pragma omp ordered in foo()
4229 #pragma omp parallel for simd in foo()
4233 #pragma omp ordered in foo()
4235 #pragma omp parallel sections in foo()
4240 #pragma omp ordered in foo()
4242 #pragma omp task in foo()
4247 #pragma omp ordered in foo()
4249 #pragma omp taskyield in foo()
4252 #pragma omp ordered in foo()
4254 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'ordered' region}} in foo()
4257 #pragma omp ordered in foo()
4259 #pragma omp scan // expected-error {{region cannot be closely nested inside 'ordered' region}} in foo()
4262 #pragma omp ordered in foo()
4264 #pragma omp taskwait in foo()
4267 #pragma omp ordered in foo()
4269 #pragma omp flush in foo()
4272 #pragma omp ordered in foo()
4274 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'ordered' region; pe… in foo()
4277 #pragma omp ordered in foo()
4279 #pragma omp atomic in foo()
4282 #pragma omp ordered in foo()
4284 #pragma omp target in foo()
4287 #pragma omp ordered in foo()
4289 #pragma omp target parallel in foo()
4292 #pragma omp ordered in foo()
4294 #pragma omp target parallel for ordered in foo()
4296 #pragma omp ordered // OK in foo()
4302 #pragma omp ordered in foo()
4304 #pragma omp target parallel for in foo()
4308 #pragma omp ordered in foo()
4310 #pragma omp target enter data map(to: a) in foo()
4313 #pragma omp ordered in foo()
4315 #pragma omp target exit data map(from: a) in foo()
4318 #pragma omp ordered in foo()
4320 #pragma omp teams // expected-error {{region cannot be closely nested inside 'ordered' region; perh… in foo()
4323 #pragma omp ordered in foo()
4325 #pragma omp taskloop in foo()
4329 #pragma omp ordered in foo()
4331 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'ordered' region;… in foo()
4335 #pragma omp ordered in foo()
4338 #pragma omp target update to(a) in foo()
4341 #pragma omp ordered in foo()
4343 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'ord… in foo()
4347 #pragma omp ordered in foo()
4349 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
4353 #pragma omp ordered in foo()
4355 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'ordered' re… in foo()
4359 #pragma omp ordered in foo()
4361 #pragma omp target simd // OK in foo()
4365 #pragma omp ordered in foo()
4367 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'ordered' r… in foo()
4371 #pragma omp ordered in foo()
4373 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'order… in foo()
4377 #pragma omp ordered in foo()
4379 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
4383 #pragma omp ordered in foo()
4385 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
4389 #pragma omp ordered in foo()
4391 #pragma omp target teams // OK in foo()
4394 #pragma omp ordered in foo()
4396 #pragma omp target teams distribute // OK in foo()
4400 #pragma omp ordered in foo()
4402 #pragma omp target teams distribute parallel for // OK in foo()
4406 #pragma omp ordered in foo()
4408 #pragma omp target teams distribute parallel for simd // OK in foo()
4412 #pragma omp ordered in foo()
4414 #pragma omp target teams distribute simd // OK in foo()
4420 #pragma omp atomic in foo()
4424 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4428 #pragma omp atomic in foo()
4432 #pragma omp simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4436 #pragma omp atomic in foo()
4440 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4444 #pragma omp atomic in foo()
4448 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4452 #pragma omp atomic in foo()
4456 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4461 #pragma omp atomic in foo()
4465 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
4470 #pragma omp atomic in foo()
4474 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4479 #pragma omp atomic in foo()
4483 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4488 #pragma omp atomic in foo()
4492 #pragma omp parallel master // expected-error {{OpenMP constructs may not be nested inside an atomi… in foo()
4497 #pragma omp atomic in foo()
4501 #pragma omp parallel masked // expected-error {{OpenMP constructs may not be nested inside an atomi… in foo()
4506 #pragma omp atomic in foo()
4510 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4515 #pragma omp atomic in foo()
4519 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic r… in foo()
4523 #pragma omp atomic in foo()
4527 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside an ato… in foo()
4531 #pragma omp atomic in foo()
4535 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside an ato… in foo()
4540 #pragma omp atomic in foo()
4544 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4549 #pragma omp atomic in foo()
4553 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside an atomic regi… in foo()
4556 #pragma omp atomic in foo()
4560 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
4563 #pragma omp atomic in foo()
4567 #pragma omp scan // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4570 #pragma omp atomic in foo()
4574 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4577 #pragma omp atomic in foo()
4581 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4584 #pragma omp atomic in foo()
4588 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
4591 #pragma omp atomic in foo()
4595 #pragma omp atomic // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4598 #pragma omp atomic in foo()
4602 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4605 #pragma omp atomic in foo()
4609 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside an atomi… in foo()
4612 #pragma omp atomic in foo()
4616 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside an a… in foo()
4620 #pragma omp atomic in foo()
4624 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
4627 #pragma omp atomic in foo()
4631 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
4634 #pragma omp atomic in foo()
4638 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
4641 #pragma omp atomic in foo()
4645 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
4649 #pragma omp atomic in foo()
4653 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside an atomic reg… in foo()
4657 #pragma omp atomic in foo()
4661 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside an a… in foo()
4664 #pragma omp atomic in foo()
4668 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
4672 #pragma omp atomic in foo()
4676 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
4680 #pragma omp atomic in foo()
4684 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside an atomi… in foo()
4688 #pragma omp atomic in foo()
4692 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside an atomic re… in foo()
4696 #pragma omp atomic in foo()
4700 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside an atom… in foo()
4704 #pragma omp atomic in foo()
4708 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside an… in foo()
4712 #pragma omp atomic in foo()
4716 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
4720 #pragma omp atomic in foo()
4724 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
4728 #pragma omp atomic in foo()
4732 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside an atomic r… in foo()
4735 #pragma omp atomic in foo()
4739 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
4743 #pragma omp atomic in foo()
4747 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
4751 #pragma omp atomic in foo()
4755 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
4759 #pragma omp atomic in foo()
4763 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
4769 #pragma omp target in foo()
4770 #pragma omp parallel in foo()
4772 #pragma omp target in foo()
4773 #pragma omp for in foo()
4776 #pragma omp target in foo()
4777 #pragma omp simd in foo()
4780 #pragma omp target in foo()
4781 #pragma omp for simd in foo()
4784 #pragma omp target in foo()
4785 #pragma omp sections in foo()
4789 #pragma omp target in foo()
4790 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
4794 #pragma omp target in foo()
4795 #pragma omp single in foo()
4798 #pragma omp target in foo()
4799 #pragma omp master in foo()
4803 #pragma omp target in foo()
4804 #pragma omp critical in foo()
4808 #pragma omp target in foo()
4809 #pragma omp parallel for in foo()
4812 #pragma omp target in foo()
4813 #pragma omp parallel for simd in foo()
4816 #pragma omp target in foo()
4817 #pragma omp parallel sections in foo()
4821 #pragma omp target in foo()
4822 #pragma omp task in foo()
4826 #pragma omp target in foo()
4828 #pragma omp taskyield in foo()
4831 #pragma omp target in foo()
4833 #pragma omp barrier in foo()
4836 #pragma omp target in foo()
4838 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target' region; perhap… in foo()
4841 #pragma omp target in foo()
4843 #pragma omp taskwait in foo()
4846 #pragma omp target in foo()
4848 #pragma omp flush in foo()
4851 #pragma omp target in foo()
4853 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target' region; per… in foo()
4856 #pragma omp target in foo()
4858 #pragma omp atomic in foo()
4861 #pragma omp target in foo()
4863 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
4866 #pragma omp target in foo()
4868 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
4871 #pragma omp target in foo()
4872 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
4875 #pragma omp target in foo()
4877 #pragma omp teams in foo()
4880 #pragma omp target // expected-error {{target construct with nested teams region contains statement… in foo()
4882 #pragma omp teams // expected-note {{directive outside teams construct here}} in foo()
4884 #pragma omp teams // expected-note {{nested teams construct here}} in foo()
4887 #pragma omp target // expected-error {{target construct with nested teams region contains statement… in foo()
4890 #pragma omp teams // expected-note {{nested teams construct here}} in foo()
4893 #pragma omp target // expected-error {{target construct with nested teams region contains statement… in foo()
4896 #pragma omp teams // expected-note {{nested teams construct here}} in foo()
4899 #pragma omp target in foo()
4901 #pragma omp taskloop in foo()
4905 #pragma omp target in foo()
4907 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target' region; … in foo()
4911 #pragma omp target in foo()
4913 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
4915 #pragma omp target in foo()
4917 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
4919 #pragma omp target in foo()
4921 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
4923 #pragma omp target in foo()
4925 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
4929 #pragma omp target in foo()
4931 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
4935 #pragma omp target in foo()
4937 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target' reg… in foo()
4941 #pragma omp target in foo()
4943 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
4947 #pragma omp target in foo()
4949 #pragma omp teams distribute // OK in foo()
4953 #pragma omp target in foo()
4955 #pragma omp teams distribute simd // OK in foo()
4959 #pragma omp target in foo()
4961 #pragma omp teams distribute parallel for simd // OK in foo()
4965 #pragma omp target in foo()
4967 #pragma omp teams distribute parallel for // OK in foo()
4971 #pragma omp target in foo()
4973 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
4977 #pragma omp target in foo()
4979 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
4983 #pragma omp target in foo()
4985 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
4989 #pragma omp target in foo()
4991 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
4995 #pragma omp target in foo()
4997 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
5003 #pragma omp target parallel in foo()
5004 #pragma omp parallel in foo()
5006 #pragma omp target parallel in foo()
5007 #pragma omp for in foo()
5010 #pragma omp target parallel in foo()
5011 #pragma omp simd in foo()
5014 #pragma omp target parallel in foo()
5015 #pragma omp for simd in foo()
5018 #pragma omp target parallel in foo()
5019 #pragma omp sections in foo()
5023 #pragma omp target parallel in foo()
5024 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
5028 #pragma omp target parallel in foo()
5029 #pragma omp single in foo()
5032 #pragma omp target parallel in foo()
5033 #pragma omp master in foo()
5037 #pragma omp target in foo()
5038 #pragma omp parallel master in foo()
5042 #pragma omp target in foo()
5043 #pragma omp parallel masked in foo()
5047 #pragma omp target parallel in foo()
5048 #pragma omp critical in foo()
5052 #pragma omp target parallel in foo()
5053 #pragma omp parallel for in foo()
5056 #pragma omp target parallel in foo()
5057 #pragma omp parallel for simd in foo()
5060 #pragma omp target parallel in foo()
5061 #pragma omp parallel sections in foo()
5065 #pragma omp target parallel in foo()
5066 #pragma omp task in foo()
5070 #pragma omp target parallel in foo()
5072 #pragma omp taskyield in foo()
5075 #pragma omp target parallel in foo()
5077 #pragma omp barrier in foo()
5080 #pragma omp target parallel in foo()
5082 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel' regio… in foo()
5085 #pragma omp target parallel in foo()
5087 #pragma omp taskwait in foo()
5090 #pragma omp target parallel in foo()
5092 #pragma omp flush in foo()
5095 #pragma omp target parallel in foo()
5097 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel' re… in foo()
5100 #pragma omp target parallel in foo()
5102 #pragma omp atomic in foo()
5105 #pragma omp target parallel in foo()
5107 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel' region}} in foo()
5110 #pragma omp target parallel in foo()
5112 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel' re… in foo()
5115 #pragma omp target parallel in foo()
5116 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel… in foo()
5119 #pragma omp target parallel in foo()
5121 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' regi… in foo()
5124 #pragma omp target parallel in foo()
5127 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' reg… in foo()
5130 #pragma omp target parallel in foo()
5132 #pragma omp taskloop in foo()
5136 #pragma omp target parallel in foo()
5138 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel'… in foo()
5142 #pragma omp target parallel in foo()
5144 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
5146 #pragma omp target parallel in foo()
5148 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
5150 #pragma omp target parallel in foo()
5152 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel… in foo()
5154 #pragma omp target parallel in foo()
5156 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
5160 #pragma omp target parallel in foo()
5162 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
5166 #pragma omp target parallel in foo()
5168 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target para… in foo()
5172 #pragma omp target parallel in foo()
5174 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel' region… in foo()
5178 #pragma omp target parallel in foo()
5180 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target par… in foo()
5184 #pragma omp target parallel in foo()
5186 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
5190 #pragma omp target parallel in foo()
5192 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
5196 #pragma omp target parallel in foo()
5198 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
5202 #pragma omp target parallel in foo()
5204 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel' regio… in foo()
5207 #pragma omp target parallel in foo()
5209 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target para… in foo()
5213 #pragma omp target parallel in foo()
5215 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
5219 #pragma omp target parallel in foo()
5221 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
5225 #pragma omp target parallel in foo()
5227 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
5233 #pragma omp target parallel for in foo()
5235 #pragma omp for // expected-error {{region cannot be closely nested inside 'target parallel for' re… in foo()
5239 #pragma omp target parallel for in foo()
5241 #pragma omp simd in foo()
5245 #pragma omp target parallel for in foo()
5247 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target parallel fo… in foo()
5251 #pragma omp target parallel for in foo()
5253 #pragma omp parallel in foo()
5257 #pragma omp target parallel for in foo()
5259 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target parallel fo… in foo()
5264 #pragma omp target parallel for in foo()
5266 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
5271 #pragma omp target parallel for in foo()
5273 #pragma omp single // expected-error {{region cannot be closely nested inside 'target parallel for'… in foo()
5279 #pragma omp target parallel for in foo()
5281 #pragma omp master // expected-error {{region cannot be closely nested inside 'target parallel for'… in foo()
5287 #pragma omp target parallel for in foo()
5289 #pragma omp critical in foo()
5295 #pragma omp target parallel for in foo()
5297 #pragma omp parallel in foo()
5299 #pragma omp single // OK in foo()
5303 #pragma omp for // OK in foo()
5306 #pragma omp for simd // OK in foo()
5309 #pragma omp sections // OK in foo()
5315 #pragma omp target parallel for in foo()
5317 #pragma omp parallel for in foo()
5321 #pragma omp target parallel for in foo()
5323 #pragma omp parallel for simd in foo()
5327 #pragma omp target parallel for in foo()
5329 #pragma omp parallel sections in foo()
5334 #pragma omp target parallel for in foo()
5336 #pragma omp task in foo()
5341 #pragma omp target parallel for in foo()
5343 #pragma omp taskyield in foo()
5346 #pragma omp target parallel for in foo()
5348 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target parallel for… in foo()
5351 #pragma omp target parallel for in foo()
5353 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel for' r… in foo()
5356 #pragma omp target parallel for in foo()
5358 #pragma omp taskwait in foo()
5361 #pragma omp target parallel for in foo()
5363 #pragma omp flush in foo()
5366 #pragma omp target parallel for in foo()
5368 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel for… in foo()
5371 #pragma omp target parallel for ordered in foo()
5373 #pragma omp ordered // OK in foo()
5376 #pragma omp target parallel for in foo()
5378 #pragma omp atomic in foo()
5381 #pragma omp target parallel for in foo()
5383 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel for' region}} in foo()
5386 #pragma omp target parallel for in foo()
5388 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel for… in foo()
5391 #pragma omp target parallel for in foo()
5393 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel… in foo()
5397 #pragma omp target parallel for in foo()
5399 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
5402 #pragma omp target parallel for in foo()
5404 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
5407 #pragma omp target parallel for in foo()
5409 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel for' … in foo()
5412 #pragma omp target parallel for in foo()
5414 #pragma omp taskloop in foo()
5418 #pragma omp target parallel for in foo()
5420 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel … in foo()
5424 #pragma omp target parallel for in foo()
5426 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel… in foo()
5428 #pragma omp target parallel for in foo()
5430 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
5434 #pragma omp target parallel for in foo()
5436 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
5440 #pragma omp target parallel for in foo()
5442 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target para… in foo()
5446 #pragma omp target parallel for in foo()
5448 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel for' re… in foo()
5452 #pragma omp target parallel for in foo()
5454 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target par… in foo()
5458 #pragma omp target parallel for in foo()
5460 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
5464 #pragma omp target parallel for in foo()
5466 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
5470 #pragma omp target parallel for in foo()
5472 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
5476 #pragma omp target parallel for in foo()
5478 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel for' r… in foo()
5481 #pragma omp target parallel for in foo()
5483 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target para… in foo()
5487 #pragma omp target parallel for in foo()
5489 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
5493 #pragma omp target parallel for in foo()
5495 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
5499 #pragma omp target parallel for in foo()
5501 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
5507 #pragma omp teams // omp45-error {{orphaned 'omp teams' directives are prohibited; perhaps you forg… in foo()
5509 #pragma omp target in foo()
5510 #pragma omp teams in foo()
5511 #pragma omp parallel in foo()
5513 #pragma omp target in foo()
5514 #pragma omp teams in foo()
5515 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams' region; perhaps … in foo()
5518 #pragma omp target in foo()
5519 #pragma omp teams in foo()
5520 #pragma omp simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
5523 #pragma omp target in foo()
5524 #pragma omp teams in foo()
5525 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
5528 #pragma omp target in foo()
5529 #pragma omp teams in foo()
5530 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
5534 #pragma omp target in foo()
5535 #pragma omp teams in foo()
5536 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
5540 #pragma omp target in foo()
5541 #pragma omp teams in foo()
5542 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams' region; perha… in foo()
5545 #pragma omp target in foo()
5546 #pragma omp teams in foo()
5547 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams' region; perha… in foo()
5551 #pragma omp target in foo()
5552 #pragma omp teams in foo()
5553 #pragma omp critical // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
5557 #pragma omp target in foo()
5558 #pragma omp teams in foo()
5559 #pragma omp parallel for in foo()
5562 #pragma omp target in foo()
5563 #pragma omp teams in foo()
5564 #pragma omp parallel for simd in foo()
5567 #pragma omp target in foo()
5568 #pragma omp teams in foo()
5569 #pragma omp parallel sections in foo()
5573 #pragma omp target in foo()
5574 #pragma omp teams in foo()
5575 #pragma omp task // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
5579 #pragma omp target in foo()
5580 #pragma omp teams in foo()
5582 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'teams' region; pe… in foo()
5585 #pragma omp target in foo()
5586 #pragma omp teams in foo()
5588 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams' region; perh… in foo()
5591 #pragma omp target in foo()
5592 #pragma omp teams in foo()
5594 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
5597 #pragma omp target in foo()
5598 #pragma omp teams in foo()
5600 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
5603 #pragma omp target in foo()
5604 #pragma omp teams in foo()
5606 #pragma omp flush // expected-error {{region cannot be closely nested inside 'teams' region; perhap… in foo()
5609 #pragma omp target in foo()
5610 #pragma omp teams in foo()
5612 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams' region; perh… in foo()
5615 #pragma omp target in foo()
5616 #pragma omp teams in foo()
5618 #pragma omp atomic // omp-error {{region cannot be closely nested inside 'teams' region; perhaps yo… in foo()
5621 #pragma omp target in foo()
5622 #pragma omp teams in foo()
5624 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
5627 #pragma omp target in foo()
5628 #pragma omp teams in foo()
5630 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
5633 #pragma omp target in foo()
5634 #pragma omp teams in foo()
5635 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
5638 #pragma omp target in foo()
5639 #pragma omp teams in foo()
5641 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
5644 #pragma omp target in foo()
5645 #pragma omp teams in foo()
5647 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
5650 #pragma omp target in foo()
5651 #pragma omp teams in foo()
5653 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams' region; perhap… in foo()
5656 #pragma omp target in foo()
5657 #pragma omp teams in foo()
5659 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
5663 #pragma omp target in foo()
5664 #pragma omp teams in foo()
5665 #pragma omp distribute in foo()
5668 #pragma omp target in foo()
5669 #pragma omp teams in foo()
5670 #pragma omp distribute in foo()
5673 #pragma omp distribute in foo()
5676 #pragma omp target in foo()
5677 #pragma omp teams in foo()
5679 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
5681 #pragma omp target in foo()
5682 #pragma omp teams in foo()
5684 #pragma omp distribute parallel for in foo()
5687 #pragma omp distribute parallel for in foo()
5691 #pragma omp target in foo()
5692 #pragma omp teams in foo()
5694 #pragma omp distribute parallel for simd in foo()
5697 #pragma omp distribute parallel for simd in foo()
5701 #pragma omp target in foo()
5702 #pragma omp teams in foo()
5704 #pragma omp distribute simd in foo()
5707 #pragma omp distribute simd in foo()
5711 #pragma omp target in foo()
5712 #pragma omp teams in foo()
5714 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
5718 #pragma omp target in foo()
5719 #pragma omp teams in foo()
5721 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams' reg… in foo()
5725 #pragma omp target in foo()
5726 #pragma omp teams in foo()
5728 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
5732 #pragma omp target in foo()
5733 #pragma omp teams in foo()
5735 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
5739 #pragma omp target in foo()
5740 #pragma omp teams in foo()
5742 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
5746 #pragma omp target in foo()
5747 #pragma omp teams in foo()
5749 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
5752 #pragma omp target in foo()
5753 #pragma omp teams in foo()
5755 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
5759 #pragma omp target in foo()
5760 #pragma omp teams in foo()
5762 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
5766 #pragma omp target in foo()
5767 #pragma omp teams in foo()
5769 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
5773 #pragma omp target in foo()
5774 #pragma omp teams in foo()
5776 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
5782 #pragma omp taskloop in foo()
5784 #pragma omp for // expected-error {{region cannot be closely nested inside 'taskloop' region; perha… in foo()
5788 #pragma omp taskloop in foo()
5790 #pragma omp simd in foo()
5794 #pragma omp taskloop in foo()
5796 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'taskloop' region; … in foo()
5800 #pragma omp taskloop in foo()
5802 #pragma omp parallel in foo()
5806 #pragma omp taskloop in foo()
5808 #pragma omp sections // expected-error {{region cannot be closely nested inside 'taskloop' region; … in foo()
5813 #pragma omp taskloop in foo()
5815 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
5820 #pragma omp taskloop in foo()
5822 #pragma omp single // expected-error {{region cannot be closely nested inside 'taskloop' region; pe… in foo()
5828 #pragma omp taskloop in foo()
5830 #pragma omp master // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
5835 #pragma omp taskloop in foo()
5837 #pragma omp critical in foo()
5842 #pragma omp taskloop in foo()
5844 #pragma omp parallel in foo()
5846 #pragma omp single // OK in foo()
5850 #pragma omp for // OK in foo()
5853 #pragma omp sections // OK in foo()
5859 #pragma omp taskloop in foo()
5861 #pragma omp parallel for in foo()
5865 #pragma omp taskloop in foo()
5867 #pragma omp parallel for simd in foo()
5871 #pragma omp taskloop in foo()
5873 #pragma omp parallel sections in foo()
5878 #pragma omp taskloop in foo()
5880 #pragma omp task in foo()
5885 #pragma omp taskloop in foo()
5887 #pragma omp taskyield in foo()
5890 #pragma omp taskloop in foo()
5892 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
5895 #pragma omp taskloop in foo()
5897 #pragma omp scan // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
5900 #pragma omp taskloop in foo()
5902 #pragma omp taskwait in foo()
5905 #pragma omp taskloop in foo()
5907 #pragma omp flush in foo()
5910 #pragma omp taskloop in foo()
5912 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'taskloop' region; p… in foo()
5915 #pragma omp taskloop in foo()
5917 #pragma omp atomic in foo()
5920 #pragma omp taskloop in foo()
5922 #pragma omp target in foo()
5925 #pragma omp taskloop in foo()
5927 #pragma omp target parallel in foo()
5930 #pragma omp taskloop in foo()
5932 #pragma omp target parallel for in foo()
5936 #pragma omp taskloop in foo()
5938 #pragma omp target enter data map(to: a) in foo()
5941 #pragma omp taskloop in foo()
5943 #pragma omp target exit data map(from: a) in foo()
5946 #pragma omp taskloop in foo()
5948 #pragma omp teams // expected-error {{region cannot be closely nested inside 'taskloop' region; per… in foo()
5951 #pragma omp taskloop in foo()
5953 #pragma omp taskloop in foo()
5957 #pragma omp taskloop in foo()
5959 #pragma omp target update to(a) in foo()
5962 #pragma omp taskloop in foo()
5964 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'taskloop' region… in foo()
5968 #pragma omp taskloop in foo()
5970 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tas… in foo()
5974 #pragma omp taskloop in foo()
5976 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
5980 #pragma omp taskloop in foo()
5982 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'taskloop' r… in foo()
5986 #pragma omp taskloop in foo()
5988 #pragma omp target simd // OK in foo()
5992 #pragma omp taskloop in foo()
5994 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'taskloop' … in foo()
5998 #pragma omp taskloop in foo()
6000 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'taskl… in foo()
6004 #pragma omp taskloop in foo()
6006 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
6010 #pragma omp taskloop in foo()
6012 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
6016 #pragma omp taskloop in foo()
6018 #pragma omp target teams // OK in foo()
6021 #pragma omp taskloop in foo()
6023 #pragma omp target teams distribute // OK in foo()
6027 #pragma omp taskloop in foo()
6029 #pragma omp target teams distribute parallel for // OK in foo()
6033 #pragma omp taskloop in foo()
6035 #pragma omp target teams distribute parallel for simd // OK in foo()
6039 #pragma omp taskloop in foo()
6041 #pragma omp target teams distribute simd // OK in foo()
6045 #pragma omp taskloop in foo()
6047 #pragma omp cancel taskgroup // omp45-error {{region cannot be closely nested inside 'taskloop' reg… in foo()
6048 #pragma omp cancellation point taskgroup // omp45-error {{region cannot be closely nested inside 't… in foo()
6050 #pragma omp taskloop in foo()
6052 #pragma omp cancel parallel // expected-error {{region cannot be closely nested inside 'taskloop' r… in foo()
6053 #pragma omp cancellation point parallel // expected-error {{region cannot be closely nested inside … in foo()
6055 #pragma omp master taskloop in foo()
6057 #pragma omp cancel taskgroup // omp45-error {{region cannot be closely nested inside 'master tasklo… in foo()
6058 #pragma omp cancellation point taskgroup // omp45-error {{region cannot be closely nested inside 'm… in foo()
6060 #pragma omp master taskloop in foo()
6062 #pragma omp cancel parallel // expected-error {{region cannot be closely nested inside 'master task… in foo()
6063 #pragma omp cancellation point parallel // expected-error {{region cannot be closely nested inside … in foo()
6065 #pragma omp parallel master taskloop in foo()
6067 #pragma omp cancel taskgroup // omp45-error {{region cannot be closely nested inside 'parallel mast… in foo()
6068 #pragma omp cancellation point taskgroup // omp45-error {{region cannot be closely nested inside 'p… in foo()
6070 #pragma omp parallel master taskloop in foo()
6072 #pragma omp cancel parallel // expected-error {{region cannot be closely nested inside 'parallel ma… in foo()
6073 #pragma omp cancellation point parallel // expected-error {{region cannot be closely nested inside … in foo()
6077 #pragma omp target in foo()
6078 #pragma omp teams in foo()
6079 #pragma omp distribute in foo()
6081 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute' regi… in foo()
6085 #pragma omp target in foo()
6086 #pragma omp teams in foo()
6087 #pragma omp distribute in foo()
6089 #pragma omp for in foo()
6093 #pragma omp target in foo()
6094 #pragma omp teams in foo()
6095 #pragma omp distribute in foo()
6097 #pragma omp simd in foo()
6101 #pragma omp target in foo()
6102 #pragma omp teams in foo()
6103 #pragma omp distribute in foo()
6105 #pragma omp for simd in foo()
6109 #pragma omp target in foo()
6110 #pragma omp teams in foo()
6111 #pragma omp distribute in foo()
6113 #pragma omp parallel in foo()
6117 #pragma omp target in foo()
6118 #pragma omp teams in foo()
6119 #pragma omp distribute in foo()
6121 #pragma omp sections in foo()
6126 #pragma omp target in foo()
6127 #pragma omp teams in foo()
6128 #pragma omp distribute in foo()
6130 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
6135 #pragma omp target in foo()
6136 #pragma omp teams in foo()
6137 #pragma omp distribute in foo()
6139 #pragma omp single in foo()
6144 #pragma omp target in foo()
6145 #pragma omp teams in foo()
6146 #pragma omp distribute in foo()
6148 #pragma omp master in foo()
6153 #pragma omp target in foo()
6154 #pragma omp teams in foo()
6155 #pragma omp distribute in foo()
6157 #pragma omp critical in foo()
6162 #pragma omp target in foo()
6163 #pragma omp teams in foo()
6164 #pragma omp distribute in foo()
6166 #pragma omp parallel in foo()
6168 #pragma omp single in foo()
6174 #pragma omp target in foo()
6175 #pragma omp teams in foo()
6176 #pragma omp distribute in foo()
6178 #pragma omp parallel for in foo()
6182 #pragma omp target in foo()
6183 #pragma omp teams in foo()
6184 #pragma omp distribute in foo()
6186 #pragma omp parallel for simd in foo()
6190 #pragma omp target in foo()
6191 #pragma omp teams in foo()
6192 #pragma omp distribute in foo()
6194 #pragma omp parallel sections in foo()
6199 #pragma omp target in foo()
6200 #pragma omp teams in foo()
6201 #pragma omp distribute in foo()
6203 #pragma omp task in foo()
6208 #pragma omp target in foo()
6209 #pragma omp teams in foo()
6210 #pragma omp distribute in foo()
6212 #pragma omp taskyield in foo()
6215 #pragma omp target in foo()
6216 #pragma omp teams in foo()
6217 #pragma omp distribute in foo()
6219 #pragma omp barrier in foo()
6222 #pragma omp target in foo()
6223 #pragma omp teams in foo()
6224 #pragma omp distribute in foo()
6226 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute' region; pe… in foo()
6229 #pragma omp target in foo()
6230 #pragma omp teams in foo()
6231 #pragma omp distribute in foo()
6233 #pragma omp taskwait in foo()
6236 #pragma omp target in foo()
6237 #pragma omp teams in foo()
6238 #pragma omp distribute in foo()
6240 #pragma omp flush in foo()
6243 #pragma omp target in foo()
6244 #pragma omp teams in foo()
6245 #pragma omp distribute in foo()
6247 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute' region;… in foo()
6250 #pragma omp target in foo()
6251 #pragma omp teams in foo()
6252 #pragma omp distribute in foo()
6254 #pragma omp atomic in foo()
6257 #pragma omp target in foo()
6258 #pragma omp teams in foo()
6259 #pragma omp distribute in foo()
6261 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
6264 #pragma omp target in foo()
6265 #pragma omp teams in foo()
6266 #pragma omp distribute in foo()
6268 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
6271 #pragma omp target in foo()
6272 #pragma omp teams in foo()
6273 #pragma omp distribute in foo()
6275 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
6279 #pragma omp target in foo()
6280 #pragma omp teams in foo()
6281 #pragma omp distribute in foo()
6283 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
6286 #pragma omp target in foo()
6287 #pragma omp teams in foo()
6288 #pragma omp distribute in foo()
6290 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
6293 #pragma omp target in foo()
6294 #pragma omp teams in foo()
6295 #pragma omp distribute in foo()
6297 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute' region; p… in foo()
6300 #pragma omp target in foo()
6301 #pragma omp teams in foo()
6302 #pragma omp distribute in foo()
6304 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
6307 #pragma omp target in foo()
6308 #pragma omp teams in foo()
6309 #pragma omp distribute in foo()
6311 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
6315 #pragma omp target in foo()
6316 #pragma omp teams in foo()
6317 #pragma omp distribute in foo()
6319 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'distribute… in foo()
6323 #pragma omp target in foo()
6324 #pragma omp teams in foo()
6325 #pragma omp distribute in foo()
6327 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'distr… in foo()
6331 #pragma omp target in foo()
6332 #pragma omp teams in foo()
6333 #pragma omp distribute in foo()
6335 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
6339 #pragma omp target in foo()
6340 #pragma omp teams in foo()
6341 #pragma omp distribute in foo()
6343 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
6347 #pragma omp target in foo()
6348 #pragma omp teams in foo()
6349 #pragma omp distribute in foo()
6351 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
6354 #pragma omp target in foo()
6355 #pragma omp teams in foo()
6356 #pragma omp distribute in foo()
6358 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
6362 #pragma omp target in foo()
6363 #pragma omp teams in foo()
6364 #pragma omp distribute in foo()
6366 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
6370 #pragma omp target in foo()
6371 #pragma omp teams in foo()
6372 #pragma omp distribute in foo()
6374 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
6378 #pragma omp target in foo()
6379 #pragma omp teams in foo()
6380 #pragma omp distribute in foo()
6382 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
6388 #pragma omp target in foo()
6389 #pragma omp teams in foo()
6390 #pragma omp distribute parallel for in foo()
6392 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'dis… in foo()
6396 #pragma omp target in foo()
6397 #pragma omp teams in foo()
6398 #pragma omp distribute parallel for in foo()
6400 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute paral… in foo()
6404 #pragma omp target in foo()
6405 #pragma omp teams in foo()
6406 #pragma omp distribute parallel for in foo()
6408 #pragma omp for // expected-error {{region cannot be closely nested inside 'distribute parallel for… in foo()
6412 #pragma omp target in foo()
6413 #pragma omp teams in foo()
6414 #pragma omp distribute parallel for in foo()
6416 #pragma omp simd in foo()
6420 #pragma omp target in foo()
6421 #pragma omp teams in foo()
6422 #pragma omp distribute parallel for in foo()
6424 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'distribute paralle… in foo()
6428 #pragma omp target in foo()
6429 #pragma omp teams in foo()
6430 #pragma omp distribute parallel for in foo()
6432 #pragma omp parallel in foo()
6436 #pragma omp target in foo()
6437 #pragma omp teams in foo()
6438 #pragma omp distribute parallel for in foo()
6440 #pragma omp sections // expected-error {{region cannot be closely nested inside 'distribute paralle… in foo()
6445 #pragma omp target in foo()
6446 #pragma omp teams in foo()
6447 #pragma omp distribute parallel for in foo()
6449 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
6454 #pragma omp target in foo()
6455 #pragma omp teams in foo()
6456 #pragma omp distribute parallel for in foo()
6458 #pragma omp single // expected-error {{region cannot be closely nested inside 'distribute parallel … in foo()
6463 #pragma omp target in foo()
6464 #pragma omp teams in foo()
6465 #pragma omp distribute parallel for in foo()
6467 #pragma omp master // expected-error {{region cannot be closely nested inside 'distribute parallel … in foo()
6472 #pragma omp target in foo()
6473 #pragma omp teams in foo()
6474 #pragma omp distribute parallel for in foo()
6476 #pragma omp critical in foo()
6481 #pragma omp target in foo()
6482 #pragma omp teams in foo()
6483 #pragma omp distribute parallel for in foo()
6485 #pragma omp parallel in foo()
6487 #pragma omp single in foo()
6493 #pragma omp target in foo()
6494 #pragma omp teams in foo()
6495 #pragma omp distribute parallel for in foo()
6497 #pragma omp parallel for in foo()
6501 #pragma omp target in foo()
6502 #pragma omp teams in foo()
6503 #pragma omp distribute parallel for in foo()
6505 #pragma omp parallel for simd in foo()
6509 #pragma omp target in foo()
6510 #pragma omp teams in foo()
6511 #pragma omp distribute parallel for in foo()
6513 #pragma omp parallel sections in foo()
6518 #pragma omp target in foo()
6519 #pragma omp teams in foo()
6520 #pragma omp distribute parallel for in foo()
6522 #pragma omp task in foo()
6527 #pragma omp target in foo()
6528 #pragma omp teams in foo()
6529 #pragma omp distribute parallel for in foo()
6531 #pragma omp taskyield in foo()
6534 #pragma omp target in foo()
6535 #pragma omp teams in foo()
6536 #pragma omp distribute parallel for in foo()
6538 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'distribute parallel… in foo()
6541 #pragma omp target in foo()
6542 #pragma omp teams in foo()
6543 #pragma omp distribute parallel for in foo()
6545 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute parallel fo… in foo()
6548 #pragma omp target in foo()
6549 #pragma omp teams in foo()
6550 #pragma omp distribute parallel for in foo()
6552 #pragma omp taskwait in foo()
6555 #pragma omp target in foo()
6556 #pragma omp teams in foo()
6557 #pragma omp distribute parallel for in foo()
6559 #pragma omp flush in foo()
6562 #pragma omp target in foo()
6563 #pragma omp teams in foo()
6564 #pragma omp distribute parallel for in foo()
6566 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute parallel… in foo()
6569 #pragma omp target in foo()
6570 #pragma omp teams in foo()
6571 #pragma omp distribute parallel for in foo()
6573 #pragma omp atomic in foo()
6576 #pragma omp target in foo()
6577 #pragma omp teams in foo()
6578 #pragma omp distribute parallel for in foo()
6580 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
6583 #pragma omp target in foo()
6584 #pragma omp teams in foo()
6585 #pragma omp distribute parallel for in foo()
6587 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
6590 #pragma omp target in foo()
6591 #pragma omp teams in foo()
6592 #pragma omp distribute parallel for in foo()
6594 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
6598 #pragma omp target in foo()
6599 #pragma omp teams in foo()
6600 #pragma omp distribute parallel for in foo()
6602 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
6605 #pragma omp target in foo()
6606 #pragma omp teams in foo()
6607 #pragma omp distribute parallel for in foo()
6609 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
6612 #pragma omp target in foo()
6613 #pragma omp teams in foo()
6614 #pragma omp distribute parallel for in foo()
6616 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute parallel f… in foo()
6619 #pragma omp target in foo()
6620 #pragma omp teams in foo()
6621 #pragma omp distribute parallel for in foo()
6623 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
6626 #pragma omp target in foo()
6627 #pragma omp teams in foo()
6628 #pragma omp distribute parallel for in foo()
6630 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'distribute … in foo()
6634 #pragma omp target in foo()
6635 #pragma omp teams in foo()
6636 #pragma omp distribute parallel for in foo()
6638 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'distribute… in foo()
6642 #pragma omp target in foo()
6643 #pragma omp teams in foo()
6644 #pragma omp distribute parallel for in foo()
6646 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'distr… in foo()
6650 #pragma omp target in foo()
6651 #pragma omp teams in foo()
6652 #pragma omp distribute parallel for in foo()
6654 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
6658 #pragma omp target in foo()
6659 #pragma omp teams in foo()
6660 #pragma omp distribute parallel for in foo()
6662 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
6666 #pragma omp target in foo()
6667 #pragma omp teams in foo()
6668 #pragma omp distribute parallel for in foo()
6670 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
6673 #pragma omp target in foo()
6674 #pragma omp teams in foo()
6675 #pragma omp distribute parallel for in foo()
6677 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
6681 #pragma omp target in foo()
6682 #pragma omp teams in foo()
6683 #pragma omp distribute parallel for in foo()
6685 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
6689 #pragma omp target in foo()
6690 #pragma omp teams in foo()
6691 #pragma omp distribute parallel for in foo()
6693 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
6697 #pragma omp target in foo()
6698 #pragma omp teams in foo()
6699 #pragma omp distribute parallel for in foo()
6701 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
6707 #pragma omp target in foo()
6708 #pragma omp teams in foo()
6709 #pragma omp distribute parallel for simd in foo()
6711 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
6715 #pragma omp target in foo()
6716 #pragma omp teams in foo()
6717 #pragma omp distribute parallel for simd in foo()
6719 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
6723 #pragma omp target in foo()
6724 #pragma omp teams in foo()
6725 #pragma omp distribute parallel for simd in foo()
6727 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6731 #pragma omp target in foo()
6732 #pragma omp teams in foo()
6733 #pragma omp distribute parallel for simd in foo()
6735 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
6739 #pragma omp target in foo()
6740 #pragma omp teams in foo()
6741 #pragma omp distribute parallel for simd in foo()
6743 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6747 #pragma omp target in foo()
6748 #pragma omp teams in foo()
6749 #pragma omp distribute parallel for simd in foo()
6751 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6755 #pragma omp target in foo()
6756 #pragma omp teams in foo()
6757 #pragma omp distribute parallel for simd in foo()
6759 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6764 #pragma omp target in foo()
6765 #pragma omp teams in foo()
6766 #pragma omp distribute parallel for simd in foo()
6768 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6773 #pragma omp target in foo()
6774 #pragma omp teams in foo()
6775 #pragma omp distribute parallel for simd in foo()
6777 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6782 #pragma omp target in foo()
6783 #pragma omp teams in foo()
6784 #pragma omp distribute parallel for simd in foo()
6786 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6791 #pragma omp target in foo()
6792 #pragma omp teams in foo()
6793 #pragma omp distribute parallel for simd in foo()
6795 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6800 #pragma omp target in foo()
6801 #pragma omp teams in foo()
6802 #pragma omp distribute parallel for simd in foo()
6804 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6806 #pragma omp single in foo()
6812 #pragma omp target in foo()
6813 #pragma omp teams in foo()
6814 #pragma omp distribute parallel for simd in foo()
6816 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
6820 #pragma omp target in foo()
6821 #pragma omp teams in foo()
6822 #pragma omp distribute parallel for simd in foo()
6824 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
6828 #pragma omp target in foo()
6829 #pragma omp teams in foo()
6830 #pragma omp distribute parallel for simd in foo()
6832 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
6837 #pragma omp target in foo()
6838 #pragma omp teams in foo()
6839 #pragma omp distribute parallel for simd in foo()
6841 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6846 #pragma omp target in foo()
6847 #pragma omp teams in foo()
6848 #pragma omp distribute parallel for simd in foo()
6850 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6853 #pragma omp target in foo()
6854 #pragma omp teams in foo()
6855 #pragma omp distribute parallel for simd in foo()
6857 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6860 #pragma omp target in foo()
6861 #pragma omp teams in foo()
6862 #pragma omp distribute parallel for simd in foo()
6864 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
6867 #pragma omp target in foo()
6868 #pragma omp teams in foo()
6869 #pragma omp distribute parallel for simd in foo()
6871 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6874 #pragma omp target in foo()
6875 #pragma omp teams in foo()
6876 #pragma omp distribute parallel for simd in foo()
6878 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6881 #pragma omp target in foo()
6882 #pragma omp teams in foo()
6883 #pragma omp distribute parallel for simd in foo()
6885 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6888 #pragma omp target in foo()
6889 #pragma omp teams in foo()
6890 #pragma omp distribute parallel for simd in foo()
6892 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6895 #pragma omp target in foo()
6896 #pragma omp teams in foo()
6897 #pragma omp distribute parallel for simd in foo()
6899 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6902 #pragma omp target in foo()
6903 #pragma omp teams in foo()
6904 #pragma omp distribute parallel for simd in foo()
6906 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
6909 #pragma omp target in foo()
6910 #pragma omp teams in foo()
6911 #pragma omp distribute parallel for simd in foo()
6913 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
6917 #pragma omp target in foo()
6918 #pragma omp teams in foo()
6919 #pragma omp distribute parallel for simd in foo()
6921 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
6924 #pragma omp target in foo()
6925 #pragma omp teams in foo()
6926 #pragma omp distribute parallel for simd in foo()
6928 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
6931 #pragma omp target in foo()
6932 #pragma omp teams in foo()
6933 #pragma omp distribute parallel for simd in foo()
6935 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
6938 #pragma omp target in foo()
6939 #pragma omp teams in foo()
6940 #pragma omp distribute parallel for simd in foo()
6942 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
6945 #pragma omp target in foo()
6946 #pragma omp teams in foo()
6947 #pragma omp distribute parallel for simd in foo()
6949 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
6953 #pragma omp target in foo()
6954 #pragma omp teams in foo()
6955 #pragma omp distribute parallel for simd in foo()
6957 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
6961 #pragma omp target in foo()
6962 #pragma omp teams in foo()
6963 #pragma omp distribute parallel for simd in foo()
6965 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
6969 #pragma omp target in foo()
6970 #pragma omp teams in foo()
6971 #pragma omp distribute parallel for simd in foo()
6973 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
6977 #pragma omp target in foo()
6978 #pragma omp teams in foo()
6979 #pragma omp distribute parallel for simd in foo()
6981 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
6985 #pragma omp target in foo()
6986 #pragma omp teams in foo()
6987 #pragma omp distribute parallel for simd in foo()
6989 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
6993 #pragma omp target in foo()
6994 #pragma omp teams in foo()
6995 #pragma omp distribute parallel for simd in foo()
6997 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
7000 #pragma omp target in foo()
7001 #pragma omp teams in foo()
7002 #pragma omp distribute parallel for simd in foo()
7004 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
7008 #pragma omp target in foo()
7009 #pragma omp teams in foo()
7010 #pragma omp distribute parallel for simd in foo()
7012 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
7016 #pragma omp target in foo()
7017 #pragma omp teams in foo()
7018 #pragma omp distribute parallel for simd in foo()
7020 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
7024 #pragma omp target in foo()
7025 #pragma omp teams in foo()
7026 #pragma omp distribute parallel for simd in foo()
7028 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
7034 #pragma omp target simd in foo()
7036 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
7040 #pragma omp target simd in foo()
7042 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
7046 #pragma omp target simd in foo()
7048 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7052 #pragma omp target simd in foo()
7054 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
7058 #pragma omp target simd in foo()
7060 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7064 #pragma omp target simd in foo()
7066 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7070 #pragma omp target simd in foo()
7072 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7077 #pragma omp target simd in foo()
7079 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7084 #pragma omp target simd in foo()
7086 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7091 #pragma omp target simd in foo()
7093 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7098 #pragma omp target simd in foo()
7100 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7105 #pragma omp target simd in foo()
7107 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7109 #pragma omp single in foo()
7115 #pragma omp target simd in foo()
7117 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
7121 #pragma omp target simd in foo()
7123 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
7127 #pragma omp target simd in foo()
7129 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
7134 #pragma omp target simd in foo()
7136 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7141 #pragma omp target simd in foo()
7143 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7146 #pragma omp target simd in foo()
7148 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7151 #pragma omp target simd in foo()
7153 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
7156 #pragma omp target simd in foo()
7158 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7161 #pragma omp target simd in foo()
7163 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7166 #pragma omp target simd in foo()
7168 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7171 #pragma omp target simd in foo()
7173 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7176 #pragma omp target simd in foo()
7178 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7181 #pragma omp target simd in foo()
7183 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
7186 #pragma omp target simd in foo()
7188 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
7192 #pragma omp target simd in foo()
7194 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
7197 #pragma omp target simd in foo()
7199 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
7202 #pragma omp target simd in foo()
7204 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7207 #pragma omp target simd in foo()
7209 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
7212 #pragma omp target simd in foo()
7214 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
7218 #pragma omp target simd in foo()
7220 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
7224 #pragma omp target simd in foo()
7226 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
7230 #pragma omp target simd in foo()
7232 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
7236 #pragma omp target simd in foo()
7238 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
7242 #pragma omp target simd in foo()
7244 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
7248 #pragma omp target simd in foo()
7250 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
7254 #pragma omp target simd in foo()
7256 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
7262 #pragma omp teams distribute // omp45-error {{orphaned 'omp teams distribute' directives are prohib… in foo()
7265 #pragma omp target in foo()
7266 #pragma omp teams distribute in foo()
7268 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
7272 #pragma omp target in foo()
7273 #pragma omp teams distribute in foo()
7275 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute… in foo()
7279 #pragma omp target in foo()
7280 #pragma omp teams distribute in foo()
7282 #pragma omp for // OK in foo()
7286 #pragma omp target in foo()
7287 #pragma omp teams distribute in foo()
7289 #pragma omp simd // OK in foo()
7293 #pragma omp target in foo()
7294 #pragma omp teams distribute in foo()
7296 #pragma omp for simd // OK in foo()
7300 #pragma omp target in foo()
7301 #pragma omp teams distribute in foo()
7303 #pragma omp parallel // OK in foo()
7307 #pragma omp target in foo()
7308 #pragma omp teams distribute in foo()
7310 #pragma omp sections // OK in foo()
7315 #pragma omp target in foo()
7316 #pragma omp teams distribute in foo()
7318 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
7323 #pragma omp target in foo()
7324 #pragma omp teams distribute in foo()
7326 #pragma omp single // OK in foo()
7331 #pragma omp target in foo()
7332 #pragma omp teams distribute in foo()
7334 #pragma omp master // OK in foo()
7339 #pragma omp target in foo()
7340 #pragma omp teams distribute in foo()
7342 #pragma omp critical // OK in foo()
7347 #pragma omp target in foo()
7348 #pragma omp teams distribute in foo()
7350 #pragma omp parallel // OK in foo()
7352 #pragma omp single in foo()
7358 #pragma omp target in foo()
7359 #pragma omp teams distribute in foo()
7361 #pragma omp parallel for // OK in foo()
7365 #pragma omp target in foo()
7366 #pragma omp teams distribute in foo()
7368 #pragma omp parallel for simd // OK in foo()
7372 #pragma omp target in foo()
7373 #pragma omp teams distribute in foo()
7375 #pragma omp parallel sections // OK in foo()
7380 #pragma omp target in foo()
7381 #pragma omp teams distribute in foo()
7383 #pragma omp task // OK in foo()
7388 #pragma omp target in foo()
7389 #pragma omp teams distribute in foo()
7391 #pragma omp taskyield // OK in foo()
7394 #pragma omp target in foo()
7395 #pragma omp teams distribute in foo()
7397 #pragma omp barrier // OK in foo()
7400 #pragma omp target in foo()
7401 #pragma omp teams distribute in foo()
7403 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute' regi… in foo()
7406 #pragma omp target in foo()
7407 #pragma omp teams distribute in foo()
7409 #pragma omp taskwait // OK in foo()
7412 #pragma omp target in foo()
7413 #pragma omp teams distribute in foo()
7415 #pragma omp flush // OK in foo()
7418 #pragma omp target in foo()
7419 #pragma omp teams distribute in foo()
7421 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute' r… in foo()
7424 #pragma omp target in foo()
7425 #pragma omp teams distribute in foo()
7427 #pragma omp atomic // OK in foo()
7430 #pragma omp target in foo()
7431 #pragma omp teams distribute in foo()
7433 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
7436 #pragma omp target in foo()
7437 #pragma omp teams distribute in foo()
7439 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
7442 #pragma omp target in foo()
7443 #pragma omp teams distribute in foo()
7445 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
7449 #pragma omp target in foo()
7450 #pragma omp teams distribute in foo()
7452 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
7455 #pragma omp target in foo()
7456 #pragma omp teams distribute in foo()
7458 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
7461 #pragma omp target in foo()
7462 #pragma omp teams distribute in foo()
7464 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute' reg… in foo()
7467 #pragma omp target in foo()
7468 #pragma omp teams distribute in foo()
7470 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
7473 #pragma omp target in foo()
7474 #pragma omp teams distribute in foo()
7476 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distr… in foo()
7480 #pragma omp target in foo()
7481 #pragma omp teams distribute in foo()
7483 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
7487 #pragma omp target in foo()
7488 #pragma omp teams distribute in foo()
7490 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams dist… in foo()
7494 #pragma omp target in foo()
7495 #pragma omp teams distribute in foo()
7497 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
7501 #pragma omp target in foo()
7502 #pragma omp teams distribute in foo()
7504 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
7508 #pragma omp target in foo()
7509 #pragma omp teams distribute in foo()
7511 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
7515 #pragma omp target in foo()
7516 #pragma omp teams distribute in foo()
7518 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
7522 #pragma omp target in foo()
7523 #pragma omp teams distribute in foo()
7525 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
7531 #pragma omp teams distribute // omp45-error {{orphaned 'omp teams distribute' directives are prohib… in foo()
7534 #pragma omp target in foo()
7535 #pragma omp teams distribute in foo()
7537 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
7541 #pragma omp target in foo()
7542 #pragma omp teams distribute in foo()
7544 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute… in foo()
7548 #pragma omp target in foo()
7549 #pragma omp teams distribute in foo()
7551 #pragma omp for // OK in foo()
7555 #pragma omp target in foo()
7556 #pragma omp teams distribute in foo()
7558 #pragma omp simd // OK in foo()
7562 #pragma omp target in foo()
7563 #pragma omp teams distribute in foo()
7565 #pragma omp for simd // OK in foo()
7569 #pragma omp target in foo()
7570 #pragma omp teams distribute in foo()
7572 #pragma omp parallel // OK in foo()
7576 #pragma omp target in foo()
7577 #pragma omp teams distribute in foo()
7579 #pragma omp sections // OK in foo()
7584 #pragma omp target in foo()
7585 #pragma omp teams distribute in foo()
7587 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
7592 #pragma omp target in foo()
7593 #pragma omp teams distribute in foo()
7595 #pragma omp single // OK in foo()
7600 #pragma omp target in foo()
7601 #pragma omp teams distribute in foo()
7603 #pragma omp master // OK in foo()
7608 #pragma omp target in foo()
7609 #pragma omp teams distribute in foo()
7611 #pragma omp critical // OK in foo()
7616 #pragma omp target in foo()
7617 #pragma omp teams distribute in foo()
7619 #pragma omp parallel // OK in foo()
7621 #pragma omp single in foo()
7627 #pragma omp target in foo()
7628 #pragma omp teams distribute in foo()
7630 #pragma omp parallel for // OK in foo()
7634 #pragma omp target in foo()
7635 #pragma omp teams distribute in foo()
7637 #pragma omp parallel for simd // OK in foo()
7641 #pragma omp target in foo()
7642 #pragma omp teams distribute in foo()
7644 #pragma omp parallel sections // OK in foo()
7649 #pragma omp target in foo()
7650 #pragma omp teams distribute in foo()
7652 #pragma omp task // OK in foo()
7657 #pragma omp target in foo()
7658 #pragma omp teams distribute in foo()
7660 #pragma omp taskyield // OK in foo()
7663 #pragma omp target in foo()
7664 #pragma omp teams distribute in foo()
7666 #pragma omp barrier // OK in foo()
7669 #pragma omp target in foo()
7670 #pragma omp teams distribute in foo()
7672 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute' regi… in foo()
7675 #pragma omp target in foo()
7676 #pragma omp teams distribute in foo()
7678 #pragma omp taskwait // OK in foo()
7681 #pragma omp target in foo()
7682 #pragma omp teams distribute in foo()
7684 #pragma omp flush // OK in foo()
7687 #pragma omp target in foo()
7688 #pragma omp teams distribute in foo()
7690 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute' r… in foo()
7693 #pragma omp target in foo()
7694 #pragma omp teams distribute in foo()
7696 #pragma omp atomic // OK in foo()
7699 #pragma omp target in foo()
7700 #pragma omp teams distribute in foo()
7702 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
7705 #pragma omp target in foo()
7706 #pragma omp teams distribute in foo()
7708 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
7711 #pragma omp target in foo()
7712 #pragma omp teams distribute in foo()
7714 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
7718 #pragma omp target in foo()
7719 #pragma omp teams distribute in foo()
7721 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
7724 #pragma omp target in foo()
7725 #pragma omp teams distribute in foo()
7727 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
7730 #pragma omp target in foo()
7731 #pragma omp teams distribute in foo()
7733 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute' reg… in foo()
7736 #pragma omp target in foo()
7737 #pragma omp teams distribute in foo()
7739 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
7742 #pragma omp target in foo()
7743 #pragma omp teams distribute in foo()
7745 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distr… in foo()
7749 #pragma omp target in foo()
7750 #pragma omp teams distribute in foo()
7752 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
7756 #pragma omp target in foo()
7757 #pragma omp teams distribute in foo()
7759 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams dist… in foo()
7763 #pragma omp target in foo()
7764 #pragma omp teams distribute in foo()
7766 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
7770 #pragma omp target in foo()
7771 #pragma omp teams distribute in foo()
7773 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
7777 #pragma omp target in foo()
7778 #pragma omp teams distribute in foo()
7780 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
7784 #pragma omp target in foo()
7785 #pragma omp teams distribute in foo()
7787 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
7790 #pragma omp target in foo()
7791 #pragma omp teams distribute in foo()
7793 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
7797 #pragma omp target in foo()
7798 #pragma omp teams distribute in foo()
7800 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
7804 #pragma omp target in foo()
7805 #pragma omp teams distribute in foo()
7807 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
7811 #pragma omp target in foo()
7812 #pragma omp teams distribute in foo()
7814 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
7820 #pragma omp teams distribute simd // omp45-error {{orphaned 'omp teams distribute simd' directives … in foo()
7823 #pragma omp target in foo()
7824 #pragma omp teams distribute simd in foo()
7826 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
7830 #pragma omp target in foo()
7831 #pragma omp teams distribute simd in foo()
7833 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
7837 #pragma omp target in foo()
7838 #pragma omp teams distribute simd in foo()
7840 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7844 #pragma omp target in foo()
7845 #pragma omp teams distribute simd in foo()
7847 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
7851 #pragma omp target in foo()
7852 #pragma omp teams distribute simd in foo()
7854 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7858 #pragma omp target in foo()
7859 #pragma omp teams distribute simd in foo()
7861 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7865 #pragma omp target in foo()
7866 #pragma omp teams distribute simd in foo()
7868 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7873 #pragma omp target in foo()
7874 #pragma omp teams distribute simd in foo()
7876 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7881 #pragma omp target in foo()
7882 #pragma omp teams distribute simd in foo()
7884 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7889 #pragma omp target in foo()
7890 #pragma omp teams distribute simd in foo()
7892 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7897 #pragma omp target in foo()
7898 #pragma omp teams distribute simd in foo()
7900 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7905 #pragma omp target in foo()
7906 #pragma omp teams distribute simd in foo()
7908 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7910 #pragma omp single in foo()
7916 #pragma omp target in foo()
7917 #pragma omp teams distribute simd in foo()
7919 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
7923 #pragma omp target in foo()
7924 #pragma omp teams distribute simd in foo()
7926 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
7930 #pragma omp target in foo()
7931 #pragma omp teams distribute simd in foo()
7933 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
7938 #pragma omp target in foo()
7939 #pragma omp teams distribute simd in foo()
7941 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7946 #pragma omp target in foo()
7947 #pragma omp teams distribute simd in foo()
7949 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7952 #pragma omp target in foo()
7953 #pragma omp teams distribute simd in foo()
7955 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7958 #pragma omp target in foo()
7959 #pragma omp teams distribute simd in foo()
7961 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
7964 #pragma omp target in foo()
7965 #pragma omp teams distribute simd in foo()
7967 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7970 #pragma omp target in foo()
7971 #pragma omp teams distribute simd in foo()
7973 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7976 #pragma omp target in foo()
7977 #pragma omp teams distribute simd in foo()
7979 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7982 #pragma omp target in foo()
7983 #pragma omp teams distribute simd in foo()
7985 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7988 #pragma omp target in foo()
7989 #pragma omp teams distribute simd in foo()
7991 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
7994 #pragma omp target in foo()
7995 #pragma omp teams distribute simd in foo()
7997 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
8000 #pragma omp target in foo()
8001 #pragma omp teams distribute simd in foo()
8003 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
8007 #pragma omp target in foo()
8008 #pragma omp teams distribute simd in foo()
8010 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
8013 #pragma omp target in foo()
8014 #pragma omp teams distribute simd in foo()
8016 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
8019 #pragma omp target in foo()
8020 #pragma omp teams distribute simd in foo()
8022 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8025 #pragma omp target in foo()
8026 #pragma omp teams distribute simd in foo()
8028 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
8031 #pragma omp target in foo()
8032 #pragma omp teams distribute simd in foo()
8034 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
8038 #pragma omp target in foo()
8039 #pragma omp teams distribute simd in foo()
8041 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
8045 #pragma omp target in foo()
8046 #pragma omp teams distribute simd in foo()
8048 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
8052 #pragma omp target in foo()
8053 #pragma omp teams distribute simd in foo()
8055 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
8059 #pragma omp target in foo()
8060 #pragma omp teams distribute simd in foo()
8062 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
8066 #pragma omp target in foo()
8067 #pragma omp teams distribute simd in foo()
8069 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
8073 #pragma omp target in foo()
8074 #pragma omp teams distribute simd in foo()
8076 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
8079 #pragma omp target in foo()
8080 #pragma omp teams distribute simd in foo()
8082 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
8086 #pragma omp target in foo()
8087 #pragma omp teams distribute simd in foo()
8089 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
8093 #pragma omp target in foo()
8094 #pragma omp teams distribute simd in foo()
8096 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
8100 #pragma omp target in foo()
8101 #pragma omp teams distribute simd in foo()
8103 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
8109 #pragma omp teams distribute parallel for simd // omp45-error {{orphaned 'omp teams distribute para… in foo()
8112 #pragma omp target in foo()
8113 #pragma omp teams distribute parallel for simd in foo()
8115 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
8119 #pragma omp target in foo()
8120 #pragma omp teams distribute parallel for simd in foo()
8122 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
8126 #pragma omp target in foo()
8127 #pragma omp teams distribute parallel for simd in foo()
8129 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8133 #pragma omp target in foo()
8134 #pragma omp teams distribute parallel for simd in foo()
8136 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
8140 #pragma omp target in foo()
8141 #pragma omp teams distribute parallel for simd in foo()
8143 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8147 #pragma omp target in foo()
8148 #pragma omp teams distribute parallel for simd in foo()
8150 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8154 #pragma omp target in foo()
8155 #pragma omp teams distribute parallel for simd in foo()
8157 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8162 #pragma omp target in foo()
8163 #pragma omp teams distribute parallel for simd in foo()
8165 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8170 #pragma omp target in foo()
8171 #pragma omp teams distribute parallel for simd in foo()
8173 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8178 #pragma omp target in foo()
8179 #pragma omp teams distribute parallel for simd in foo()
8181 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8186 #pragma omp target in foo()
8187 #pragma omp teams distribute parallel for simd in foo()
8189 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8194 #pragma omp target in foo()
8195 #pragma omp teams distribute parallel for simd in foo()
8197 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8199 #pragma omp single in foo()
8205 #pragma omp target in foo()
8206 #pragma omp teams distribute parallel for simd in foo()
8208 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
8212 #pragma omp target in foo()
8213 #pragma omp teams distribute parallel for simd in foo()
8215 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
8219 #pragma omp target in foo()
8220 #pragma omp teams distribute parallel for simd in foo()
8222 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
8227 #pragma omp target in foo()
8228 #pragma omp teams distribute parallel for simd in foo()
8230 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8235 #pragma omp target in foo()
8236 #pragma omp teams distribute parallel for simd in foo()
8238 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8241 #pragma omp target in foo()
8242 #pragma omp teams distribute parallel for simd in foo()
8244 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8247 #pragma omp target in foo()
8248 #pragma omp teams distribute parallel for simd in foo()
8250 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
8253 #pragma omp target in foo()
8254 #pragma omp teams distribute parallel for simd in foo()
8256 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8259 #pragma omp target in foo()
8260 #pragma omp teams distribute parallel for simd in foo()
8262 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8265 #pragma omp target in foo()
8266 #pragma omp teams distribute parallel for simd in foo()
8268 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8271 #pragma omp target in foo()
8272 #pragma omp teams distribute parallel for simd in foo()
8274 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8277 #pragma omp target in foo()
8278 #pragma omp teams distribute parallel for simd in foo()
8280 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8283 #pragma omp target in foo()
8284 #pragma omp teams distribute parallel for simd in foo()
8286 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
8289 #pragma omp target in foo()
8290 #pragma omp teams distribute parallel for simd in foo()
8292 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
8296 #pragma omp target in foo()
8297 #pragma omp teams distribute parallel for simd in foo()
8299 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
8302 #pragma omp target in foo()
8303 #pragma omp teams distribute parallel for simd in foo()
8305 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
8308 #pragma omp target in foo()
8309 #pragma omp teams distribute parallel for simd in foo()
8311 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
8314 #pragma omp target in foo()
8315 #pragma omp teams distribute parallel for simd in foo()
8317 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
8320 #pragma omp target in foo()
8321 #pragma omp teams distribute parallel for simd in foo()
8323 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
8327 #pragma omp target in foo()
8328 #pragma omp teams distribute parallel for simd in foo()
8330 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
8334 #pragma omp target in foo()
8335 #pragma omp teams distribute parallel for simd in foo()
8337 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
8341 #pragma omp target in foo()
8342 #pragma omp teams distribute parallel for simd in foo()
8344 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
8348 #pragma omp target in foo()
8349 #pragma omp teams distribute parallel for simd in foo()
8351 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
8355 #pragma omp target in foo()
8356 #pragma omp teams distribute parallel for simd in foo()
8358 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
8362 #pragma omp target in foo()
8363 #pragma omp teams distribute parallel for simd in foo()
8365 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
8368 #pragma omp target in foo()
8369 #pragma omp teams distribute parallel for simd in foo()
8371 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
8375 #pragma omp target in foo()
8376 #pragma omp teams distribute parallel for simd in foo()
8378 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
8382 #pragma omp target in foo()
8383 #pragma omp teams distribute parallel for simd in foo()
8385 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
8389 #pragma omp target in foo()
8390 #pragma omp teams distribute parallel for simd in foo()
8392 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
8398 #pragma omp teams distribute parallel for // omp45-error {{orphaned 'omp teams distribute parallel … in foo()
8401 #pragma omp target in foo()
8402 #pragma omp teams distribute parallel for in foo()
8404 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
8408 #pragma omp target in foo()
8409 #pragma omp teams distribute parallel for in foo()
8411 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute… in foo()
8415 #pragma omp target in foo()
8416 #pragma omp teams distribute parallel for in foo()
8418 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams distribute parall… in foo()
8422 #pragma omp target in foo()
8423 #pragma omp teams distribute parallel for in foo()
8425 #pragma omp simd // OK in foo()
8429 #pragma omp target in foo()
8430 #pragma omp teams distribute parallel for in foo()
8432 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams distribute p… in foo()
8436 #pragma omp target in foo()
8437 #pragma omp teams distribute parallel for in foo()
8439 #pragma omp parallel // OK in foo()
8443 #pragma omp target in foo()
8444 #pragma omp teams distribute parallel for in foo()
8446 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams distribute p… in foo()
8451 #pragma omp target in foo()
8452 #pragma omp teams distribute parallel for in foo()
8454 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
8459 #pragma omp target in foo()
8460 #pragma omp teams distribute parallel for in foo()
8462 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams distribute par… in foo()
8467 #pragma omp target in foo()
8468 #pragma omp teams distribute parallel for in foo()
8470 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams distribute par… in foo()
8475 #pragma omp target in foo()
8476 #pragma omp teams distribute parallel for in foo()
8478 #pragma omp critical // OK in foo()
8483 #pragma omp target in foo()
8484 #pragma omp teams distribute parallel for in foo()
8486 #pragma omp parallel // OK in foo()
8488 #pragma omp single in foo()
8494 #pragma omp target in foo()
8495 #pragma omp teams distribute parallel for in foo()
8497 #pragma omp parallel for // OK in foo()
8501 #pragma omp target in foo()
8502 #pragma omp teams distribute parallel for in foo()
8504 #pragma omp parallel for simd // OK in foo()
8508 #pragma omp target in foo()
8509 #pragma omp teams distribute parallel for in foo()
8511 #pragma omp parallel sections // OK in foo()
8516 #pragma omp target in foo()
8517 #pragma omp teams distribute parallel for in foo()
8519 #pragma omp task // OK in foo()
8524 #pragma omp target in foo()
8525 #pragma omp teams distribute parallel for in foo()
8527 #pragma omp taskyield // OK in foo()
8530 #pragma omp target in foo()
8531 #pragma omp teams distribute parallel for in foo()
8533 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams distribute pa… in foo()
8536 #pragma omp target in foo()
8537 #pragma omp teams distribute parallel for in foo()
8539 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute paral… in foo()
8542 #pragma omp target in foo()
8543 #pragma omp teams distribute parallel for in foo()
8545 #pragma omp taskwait // OK in foo()
8548 #pragma omp target in foo()
8549 #pragma omp teams distribute parallel for in foo()
8551 #pragma omp flush // OK in foo()
8554 #pragma omp target in foo()
8555 #pragma omp teams distribute parallel for in foo()
8557 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute pa… in foo()
8560 #pragma omp target in foo()
8561 #pragma omp teams distribute parallel for in foo()
8563 #pragma omp atomic // OK in foo()
8566 #pragma omp target in foo()
8567 #pragma omp teams distribute parallel for in foo()
8569 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
8572 #pragma omp target in foo()
8573 #pragma omp teams distribute parallel for in foo()
8575 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
8578 #pragma omp target in foo()
8579 #pragma omp teams distribute parallel for in foo()
8581 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
8585 #pragma omp target in foo()
8586 #pragma omp teams distribute parallel for in foo()
8588 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
8591 #pragma omp target in foo()
8592 #pragma omp teams distribute parallel for in foo()
8594 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
8597 #pragma omp target in foo()
8598 #pragma omp teams distribute parallel for in foo()
8600 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute para… in foo()
8603 #pragma omp target in foo()
8604 #pragma omp teams distribute parallel for in foo()
8606 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
8609 #pragma omp target in foo()
8610 #pragma omp teams distribute parallel for in foo()
8612 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distr… in foo()
8616 #pragma omp target in foo()
8617 #pragma omp teams distribute parallel for in foo()
8619 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
8623 #pragma omp target in foo()
8624 #pragma omp teams distribute parallel for in foo()
8626 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams dist… in foo()
8630 #pragma omp target in foo()
8631 #pragma omp teams distribute parallel for in foo()
8633 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
8637 #pragma omp target in foo()
8638 #pragma omp teams distribute parallel for in foo()
8640 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
8644 #pragma omp target in foo()
8645 #pragma omp teams distribute parallel for in foo()
8647 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
8651 #pragma omp target in foo()
8652 #pragma omp teams distribute parallel for in foo()
8654 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
8657 #pragma omp target in foo()
8658 #pragma omp teams distribute parallel for in foo()
8660 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
8664 #pragma omp target in foo()
8665 #pragma omp teams distribute parallel for in foo()
8667 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
8671 #pragma omp target in foo()
8672 #pragma omp teams distribute parallel for in foo()
8674 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
8678 #pragma omp target in foo()
8679 #pragma omp teams distribute parallel for in foo()
8681 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
8687 #pragma omp target teams in foo()
8688 #pragma omp parallel in foo()
8690 #pragma omp target teams in foo()
8691 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams' region; p… in foo()
8694 #pragma omp target teams in foo()
8695 #pragma omp simd // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
8698 #pragma omp target teams in foo()
8699 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
8702 #pragma omp target teams in foo()
8703 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
8707 #pragma omp target teams in foo()
8708 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
8712 #pragma omp target teams in foo()
8713 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams' region… in foo()
8716 #pragma omp target teams in foo()
8717 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams' region… in foo()
8721 #pragma omp target teams in foo()
8722 #pragma omp critical // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
8726 #pragma omp target teams in foo()
8727 #pragma omp parallel for in foo()
8730 #pragma omp target teams in foo()
8731 #pragma omp parallel for simd in foo()
8734 #pragma omp target teams in foo()
8735 #pragma omp parallel sections in foo()
8739 #pragma omp target teams in foo()
8740 #pragma omp task // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
8744 #pragma omp target teams in foo()
8746 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'target teams' reg… in foo()
8749 #pragma omp target teams in foo()
8751 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams' regio… in foo()
8754 #pragma omp target teams in foo()
8756 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
8759 #pragma omp target teams in foo()
8761 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
8764 #pragma omp target teams in foo()
8766 #pragma omp flush // expected-error {{region cannot be closely nested inside 'target teams' region;… in foo()
8769 #pragma omp target teams in foo()
8771 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams' regio… in foo()
8774 #pragma omp target teams in foo()
8776 #pragma omp atomic // omp-error {{region cannot be closely nested inside 'target teams' region; per… in foo()
8779 #pragma omp target teams in foo()
8781 #pragma omp target // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
8784 #pragma omp target teams in foo()
8786 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams' regio… in foo()
8789 #pragma omp target teams in foo()
8790 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams' r… in foo()
8793 #pragma omp target teams in foo()
8795 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
8797 #pragma omp target teams in foo()
8799 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
8801 #pragma omp target teams in foo()
8803 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams' region;… in foo()
8806 #pragma omp target teams in foo()
8808 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
8812 #pragma omp target teams in foo()
8813 #pragma omp distribute in foo()
8816 #pragma omp target teams in foo()
8818 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams' r… in foo()
8821 #pragma omp target teams in foo()
8822 #pragma omp distribute parallel for in foo()
8825 #pragma omp target teams in foo()
8827 #pragma omp distribute parallel for in foo()
8830 #pragma omp distribute parallel for in foo()
8834 #pragma omp target teams in foo()
8836 #pragma omp distribute parallel for simd in foo()
8839 #pragma omp distribute parallel for simd in foo()
8843 #pragma omp target teams in foo()
8845 #pragma omp distribute simd in foo()
8848 #pragma omp distribute simd in foo()
8852 #pragma omp target teams in foo()
8854 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
8858 #pragma omp target teams in foo()
8860 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
8864 #pragma omp target teams in foo()
8866 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
8870 #pragma omp target teams in foo()
8872 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
8876 #pragma omp target teams in foo()
8878 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
8882 #pragma omp target teams in foo()
8884 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
8887 #pragma omp target teams in foo()
8889 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
8893 #pragma omp target teams in foo()
8895 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
8899 #pragma omp target teams in foo()
8901 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
8905 #pragma omp target teams in foo()
8907 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
8913 #pragma omp target teams distribute // OK in foo()
8916 #pragma omp target teams distribute in foo()
8918 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
8922 #pragma omp target teams distribute in foo()
8924 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams dis… in foo()
8928 #pragma omp target teams distribute in foo()
8930 #pragma omp for // OK in foo()
8934 #pragma omp target teams distribute in foo()
8936 #pragma omp simd // OK in foo()
8940 #pragma omp target teams distribute in foo()
8942 #pragma omp for simd // OK in foo()
8946 #pragma omp target teams distribute in foo()
8948 #pragma omp parallel // OK in foo()
8952 #pragma omp target teams distribute in foo()
8954 #pragma omp sections // OK in foo()
8959 #pragma omp target teams distribute in foo()
8961 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
8966 #pragma omp target teams distribute in foo()
8968 #pragma omp single // OK in foo()
8973 #pragma omp target teams distribute in foo()
8975 #pragma omp master // OK in foo()
8980 #pragma omp target teams distribute in foo()
8982 #pragma omp critical // OK in foo()
8987 #pragma omp target teams distribute in foo()
8989 #pragma omp parallel // OK in foo()
8991 #pragma omp single in foo()
8997 #pragma omp target teams distribute in foo()
8999 #pragma omp parallel for // OK in foo()
9003 #pragma omp target teams distribute in foo()
9005 #pragma omp parallel for simd // OK in foo()
9009 #pragma omp target teams distribute in foo()
9011 #pragma omp parallel sections // OK in foo()
9016 #pragma omp target teams distribute in foo()
9018 #pragma omp task // OK in foo()
9023 #pragma omp target teams distribute in foo()
9025 #pragma omp taskyield // OK in foo()
9028 #pragma omp target teams distribute in foo()
9030 #pragma omp barrier // OK in foo()
9033 #pragma omp target teams distribute in foo()
9035 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribut… in foo()
9038 #pragma omp target teams distribute in foo()
9040 #pragma omp taskwait // OK in foo()
9043 #pragma omp target teams distribute in foo()
9045 #pragma omp flush // OK in foo()
9048 #pragma omp target teams distribute in foo()
9050 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
9053 #pragma omp target teams distribute in foo()
9055 #pragma omp atomic // OK in foo()
9058 #pragma omp target teams distribute in foo()
9060 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute' reg… in foo()
9063 #pragma omp target teams distribute in foo()
9065 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distr… in foo()
9068 #pragma omp target teams distribute in foo()
9070 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams di… in foo()
9074 #pragma omp target teams distribute in foo()
9076 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
9079 #pragma omp target teams distribute in foo()
9081 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
9084 #pragma omp target teams distribute in foo()
9086 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribu… in foo()
9089 #pragma omp target teams distribute in foo()
9091 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams di… in foo()
9094 #pragma omp target teams distribute in foo()
9096 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target team… in foo()
9100 #pragma omp target teams distribute in foo()
9102 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute… in foo()
9106 #pragma omp target teams distribute in foo()
9108 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
9112 #pragma omp target teams distribute in foo()
9114 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
9118 #pragma omp target teams distribute in foo()
9120 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
9124 #pragma omp target teams distribute in foo()
9126 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
9130 #pragma omp target teams distribute in foo()
9132 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribut… in foo()
9135 #pragma omp target teams distribute in foo()
9137 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
9141 #pragma omp target teams distribute in foo()
9143 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
9147 #pragma omp target teams distribute in foo()
9149 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
9153 #pragma omp target teams distribute in foo()
9155 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
9161 #pragma omp target teams distribute parallel for // OK in foo()
9164 #pragma omp target teams distribute parallel for in foo()
9166 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
9170 #pragma omp target teams distribute parallel for in foo()
9172 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams dis… in foo()
9176 #pragma omp target teams distribute parallel for in foo()
9178 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams distribute… in foo()
9182 #pragma omp target teams distribute parallel for in foo()
9184 #pragma omp simd // OK in foo()
9188 #pragma omp target teams distribute parallel for in foo()
9190 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams distr… in foo()
9194 #pragma omp target teams distribute parallel for in foo()
9196 #pragma omp parallel // OK in foo()
9200 #pragma omp target teams distribute parallel for in foo()
9202 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams distr… in foo()
9207 #pragma omp target teams distribute parallel for in foo()
9209 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
9214 #pragma omp target teams distribute parallel for in foo()
9216 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams distrib… in foo()
9221 #pragma omp target teams distribute parallel for in foo()
9223 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams distrib… in foo()
9228 #pragma omp target teams distribute parallel for in foo()
9230 #pragma omp critical // OK in foo()
9235 #pragma omp target teams distribute parallel for in foo()
9237 #pragma omp parallel // OK in foo()
9239 #pragma omp single in foo()
9245 #pragma omp target teams distribute parallel for in foo()
9247 #pragma omp parallel for // OK in foo()
9251 #pragma omp target teams distribute parallel for in foo()
9253 #pragma omp parallel for simd // OK in foo()
9257 #pragma omp target teams distribute parallel for in foo()
9259 #pragma omp parallel sections // OK in foo()
9264 #pragma omp target teams distribute parallel for in foo()
9266 #pragma omp task // OK in foo()
9271 #pragma omp target teams distribute parallel for in foo()
9273 #pragma omp taskyield // OK in foo()
9276 #pragma omp target teams distribute parallel for in foo()
9278 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
9281 #pragma omp target teams distribute parallel for in foo()
9283 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribut… in foo()
9286 #pragma omp target teams distribute parallel for in foo()
9288 #pragma omp taskwait // OK in foo()
9291 #pragma omp target teams distribute parallel for in foo()
9293 #pragma omp flush // OK in foo()
9296 #pragma omp target teams distribute parallel for in foo()
9298 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
9301 #pragma omp target teams distribute parallel for in foo()
9303 #pragma omp atomic // OK in foo()
9306 #pragma omp target teams distribute parallel for in foo()
9308 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute para… in foo()
9311 #pragma omp target teams distribute parallel for in foo()
9313 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distr… in foo()
9316 #pragma omp target teams distribute parallel for in foo()
9318 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams di… in foo()
9322 #pragma omp target teams distribute parallel for in foo()
9324 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
9327 #pragma omp target teams distribute parallel for in foo()
9329 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
9332 #pragma omp target teams distribute parallel for in foo()
9334 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribu… in foo()
9337 #pragma omp target teams distribute parallel for in foo()
9339 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams di… in foo()
9342 #pragma omp target teams distribute parallel for in foo()
9344 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target team… in foo()
9348 #pragma omp target teams distribute parallel for in foo()
9350 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute… in foo()
9354 #pragma omp target teams distribute parallel for in foo()
9356 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
9360 #pragma omp target teams distribute parallel for in foo()
9362 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
9366 #pragma omp target teams distribute parallel for in foo()
9368 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
9372 #pragma omp target teams distribute parallel for in foo()
9374 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
9378 #pragma omp target teams distribute parallel for in foo()
9380 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribut… in foo()
9383 #pragma omp target teams distribute parallel for in foo()
9385 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
9389 #pragma omp target teams distribute parallel for in foo()
9391 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
9395 #pragma omp target teams distribute parallel for in foo()
9397 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
9401 #pragma omp target teams distribute parallel for in foo()
9403 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
9409 #pragma omp target teams distribute parallel for simd // OK in foo()
9412 #pragma omp target teams distribute parallel for simd in foo()
9414 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
9418 #pragma omp target teams distribute parallel for simd in foo()
9420 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
9424 #pragma omp target teams distribute parallel for simd in foo()
9426 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9430 #pragma omp target teams distribute parallel for simd in foo()
9432 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
9436 #pragma omp target teams distribute parallel for simd in foo()
9438 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9442 #pragma omp target teams distribute parallel for simd in foo()
9444 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9448 #pragma omp target teams distribute parallel for simd in foo()
9450 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9455 #pragma omp target teams distribute parallel for simd in foo()
9457 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9462 #pragma omp target teams distribute parallel for simd in foo()
9464 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9469 #pragma omp target teams distribute parallel for simd in foo()
9471 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9476 #pragma omp target teams distribute parallel for simd in foo()
9478 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9483 #pragma omp target teams distribute parallel for simd in foo()
9485 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9487 #pragma omp single in foo()
9493 #pragma omp target teams distribute parallel for simd in foo()
9495 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
9499 #pragma omp target teams distribute parallel for simd in foo()
9501 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
9505 #pragma omp target teams distribute parallel for simd in foo()
9507 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
9512 #pragma omp target teams distribute parallel for simd in foo()
9514 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9519 #pragma omp target teams distribute parallel for simd in foo()
9521 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9524 #pragma omp target teams distribute parallel for simd in foo()
9526 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9529 #pragma omp target teams distribute parallel for simd in foo()
9531 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
9534 #pragma omp target teams distribute parallel for simd in foo()
9536 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9539 #pragma omp target teams distribute parallel for simd in foo()
9541 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9544 #pragma omp target teams distribute parallel for simd in foo()
9546 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9549 #pragma omp target teams distribute parallel for simd in foo()
9551 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9554 #pragma omp target teams distribute parallel for simd in foo()
9556 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9559 #pragma omp target teams distribute parallel for simd in foo()
9561 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
9564 #pragma omp target teams distribute parallel for simd in foo()
9566 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
9570 #pragma omp target teams distribute parallel for simd in foo()
9572 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
9575 #pragma omp target teams distribute parallel for simd in foo()
9577 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
9580 #pragma omp target teams distribute parallel for simd in foo()
9582 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9585 #pragma omp target teams distribute parallel for simd in foo()
9587 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
9590 #pragma omp target teams distribute parallel for simd in foo()
9592 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
9596 #pragma omp target teams distribute parallel for simd in foo()
9598 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
9602 #pragma omp target teams distribute parallel for simd in foo()
9604 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
9608 #pragma omp target teams distribute parallel for simd in foo()
9610 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
9614 #pragma omp target teams distribute parallel for simd in foo()
9616 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
9620 #pragma omp target teams distribute parallel for simd in foo()
9622 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
9626 #pragma omp target teams distribute parallel for simd in foo()
9628 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
9631 #pragma omp target teams distribute parallel for simd in foo()
9633 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
9637 #pragma omp target teams distribute parallel for simd in foo()
9639 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
9643 #pragma omp target teams distribute parallel for simd in foo()
9645 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
9649 #pragma omp target teams distribute parallel for simd in foo()
9651 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
9657 #pragma omp target teams distribute simd // OK in foo()
9660 #pragma omp target teams distribute simd in foo()
9662 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
9666 #pragma omp target teams distribute simd in foo()
9668 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
9672 #pragma omp target teams distribute simd in foo()
9674 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9678 #pragma omp target teams distribute simd in foo()
9680 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
9684 #pragma omp target teams distribute simd in foo()
9686 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9690 #pragma omp target teams distribute simd in foo()
9692 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9696 #pragma omp target teams distribute simd in foo()
9698 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9703 #pragma omp target teams distribute simd in foo()
9705 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9710 #pragma omp target teams distribute simd in foo()
9712 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9717 #pragma omp target teams distribute simd in foo()
9719 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9724 #pragma omp target teams distribute simd in foo()
9726 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9731 #pragma omp target teams distribute simd in foo()
9733 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9735 #pragma omp single in foo()
9741 #pragma omp target teams distribute simd in foo()
9743 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
9747 #pragma omp target teams distribute simd in foo()
9749 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
9753 #pragma omp target teams distribute simd in foo()
9755 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
9760 #pragma omp target teams distribute simd in foo()
9762 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9767 #pragma omp target teams distribute simd in foo()
9769 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9772 #pragma omp target teams distribute simd in foo()
9774 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9777 #pragma omp target teams distribute simd in foo()
9779 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
9782 #pragma omp target teams distribute simd in foo()
9784 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9787 #pragma omp target teams distribute simd in foo()
9789 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9792 #pragma omp target teams distribute simd in foo()
9794 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9797 #pragma omp target teams distribute simd in foo()
9799 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9802 #pragma omp target teams distribute simd in foo()
9804 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9807 #pragma omp target teams distribute simd in foo()
9809 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
9812 #pragma omp target teams distribute simd in foo()
9814 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
9818 #pragma omp target teams distribute simd in foo()
9820 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
9823 #pragma omp target teams distribute simd in foo()
9825 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
9828 #pragma omp target teams distribute simd in foo()
9830 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
9833 #pragma omp target teams distribute simd in foo()
9835 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
9838 #pragma omp target teams distribute simd in foo()
9840 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
9844 #pragma omp target teams distribute simd in foo()
9846 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
9850 #pragma omp target teams distribute simd in foo()
9852 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
9856 #pragma omp target teams distribute simd in foo()
9858 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
9862 #pragma omp target teams distribute simd in foo()
9864 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
9868 #pragma omp target teams distribute simd in foo()
9870 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
9874 #pragma omp target teams distribute simd in foo()
9876 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
9879 #pragma omp target teams distribute simd in foo()
9881 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
9885 #pragma omp target teams distribute simd in foo()
9887 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
9891 #pragma omp target teams distribute simd in foo()
9893 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
9897 #pragma omp target teams distribute simd in foo()
9899 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
9909 #pragma omp parallel in foo()
9910 #pragma omp for in foo()
9913 #pragma omp parallel in foo()
9914 #pragma omp simd in foo()
9917 #pragma omp parallel in foo()
9918 #pragma omp for simd in foo()
9921 #pragma omp parallel in foo()
9922 #pragma omp sections in foo()
9926 #pragma omp parallel in foo()
9927 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
9931 #pragma omp parallel in foo()
9932 #pragma omp sections in foo()
9936 #pragma omp parallel in foo()
9937 #pragma omp single in foo()
9939 #pragma omp parallel in foo()
9940 #pragma omp master in foo()
9942 #pragma omp parallel master in foo()
9944 #pragma omp parallel masked in foo()
9946 #pragma omp parallel in foo()
9947 #pragma omp critical in foo()
9949 #pragma omp parallel in foo()
9950 #pragma omp parallel for in foo()
9953 #pragma omp parallel in foo()
9954 #pragma omp parallel for simd in foo()
9957 #pragma omp parallel in foo()
9958 #pragma omp parallel sections in foo()
9962 #pragma omp parallel in foo()
9963 #pragma omp task in foo()
9967 #pragma omp parallel in foo()
9969 #pragma omp taskyield in foo()
9972 #pragma omp parallel in foo()
9974 #pragma omp barrier in foo()
9977 #pragma omp parallel in foo()
9979 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel' region; perh… in foo()
9982 #pragma omp parallel in foo()
9984 #pragma omp taskwait in foo()
9987 #pragma omp parallel in foo()
9989 #pragma omp flush in foo()
9992 #pragma omp parallel in foo()
9994 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel' region; p… in foo()
9997 #pragma omp parallel in foo()
9999 #pragma omp atomic in foo()
10002 #pragma omp parallel in foo()
10004 #pragma omp target in foo()
10007 #pragma omp parallel in foo()
10009 #pragma omp target parallel in foo()
10012 #pragma omp parallel in foo()
10013 #pragma omp target parallel for in foo()
10016 #pragma omp parallel in foo()
10018 #pragma omp target enter data map(to: a) in foo()
10021 #pragma omp parallel in foo()
10023 #pragma omp target exit data map(from: a) in foo()
10026 #pragma omp parallel in foo()
10028 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel' region; per… in foo()
10031 #pragma omp parallel in foo()
10033 #pragma omp taskloop in foo()
10037 #pragma omp parallel in foo()
10039 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel' region… in foo()
10043 #pragma omp parallel in foo()
10045 #pragma omp target update to(a) in foo()
10048 #pragma omp parallel in foo()
10050 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
10054 #pragma omp parallel in foo()
10056 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
10060 #pragma omp parallel in foo()
10062 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel' r… in foo()
10066 #pragma omp parallel in foo()
10068 #pragma omp target simd // OK in foo()
10072 #pragma omp parallel in foo()
10074 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel' … in foo()
10078 #pragma omp parallel in foo()
10080 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
10084 #pragma omp parallel in foo()
10086 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
10090 #pragma omp parallel in foo()
10092 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
10096 #pragma omp parallel in foo()
10098 #pragma omp target teams // OK in foo()
10101 #pragma omp parallel in foo()
10103 #pragma omp target teams distribute // OK in foo()
10107 #pragma omp parallel in foo()
10109 #pragma omp target teams distribute parallel for // OK in foo()
10113 #pragma omp parallel in foo()
10115 #pragma omp target teams distribute parallel for simd // OK in foo()
10119 #pragma omp parallel in foo()
10121 #pragma omp target teams distribute simd // OK in foo()
10127 #pragma omp simd in foo()
10129 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10133 #pragma omp simd in foo()
10135 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
10139 #pragma omp simd in foo()
10141 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10145 #pragma omp simd in foo()
10147 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10151 #pragma omp simd in foo()
10153 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10158 #pragma omp simd in foo()
10160 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10165 #pragma omp simd in foo()
10167 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10169 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10172 #pragma omp simd in foo()
10174 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10176 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10179 #pragma omp simd in foo()
10181 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
10185 #pragma omp simd in foo()
10187 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
10191 #pragma omp simd in foo()
10193 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
10198 #pragma omp simd in foo()
10200 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10205 #pragma omp simd in foo()
10207 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10210 #pragma omp simd in foo()
10212 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10215 #pragma omp simd in foo()
10217 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
10220 #pragma omp simd in foo()
10222 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10225 #pragma omp simd in foo()
10227 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10230 #pragma omp simd in foo()
10232 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10235 #pragma omp simd in foo()
10237 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10240 #pragma omp simd in foo()
10242 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10245 #pragma omp simd in foo()
10247 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
10250 #pragma omp simd in foo()
10252 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
10256 #pragma omp simd in foo()
10258 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
10261 #pragma omp simd in foo()
10263 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
10266 #pragma omp simd in foo()
10268 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10271 #pragma omp simd in foo()
10273 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10277 #pragma omp simd in foo()
10279 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
10283 #pragma omp simd in foo()
10285 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
10288 #pragma omp simd in foo()
10290 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
10294 #pragma omp simd in foo()
10296 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
10300 #pragma omp simd in foo()
10302 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
10306 #pragma omp simd in foo()
10308 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
10312 #pragma omp simd in foo()
10314 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
10318 #pragma omp simd in foo()
10320 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
10324 #pragma omp simd in foo()
10326 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
10330 #pragma omp simd in foo()
10332 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
10336 #pragma omp simd in foo()
10338 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
10341 #pragma omp simd in foo()
10343 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
10347 #pragma omp simd in foo()
10349 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
10353 #pragma omp simd in foo()
10355 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
10359 #pragma omp simd in foo()
10361 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
10367 #pragma omp for in foo()
10369 #pragma omp for // expected-error {{region cannot be closely nested inside 'for' region; perhaps yo… in foo()
10373 #pragma omp for in foo()
10375 #pragma omp simd in foo()
10379 #pragma omp for in foo()
10381 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'for' region; perha… in foo()
10385 #pragma omp for in foo()
10387 #pragma omp parallel in foo()
10391 #pragma omp for in foo()
10393 #pragma omp sections // expected-error {{region cannot be closely nested inside 'for' region; perha… in foo()
10398 #pragma omp for in foo()
10400 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
10405 #pragma omp for in foo()
10407 #pragma omp single // expected-error {{region cannot be closely nested inside 'for' region; perhaps… in foo()
10409 #pragma omp master // expected-error {{region cannot be closely nested inside 'for' region}} in foo()
10411 #pragma omp critical in foo()
10414 #pragma omp for in foo()
10416 #pragma omp parallel in foo()
10418 #pragma omp single // OK in foo()
10422 #pragma omp for // OK in foo()
10425 #pragma omp for simd // OK in foo()
10428 #pragma omp sections // OK in foo()
10434 #pragma omp for in foo()
10436 #pragma omp parallel for in foo()
10440 #pragma omp for in foo()
10442 #pragma omp parallel for simd in foo()
10446 #pragma omp for in foo()
10448 #pragma omp parallel sections in foo()
10453 #pragma omp for in foo()
10455 #pragma omp task in foo()
10460 #pragma omp for in foo()
10462 #pragma omp taskyield in foo()
10465 #pragma omp for in foo()
10467 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'for' region}} in foo()
10470 #pragma omp for in foo()
10472 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'for' region}} omp50-error… in foo()
10475 #pragma omp for in foo()
10477 #pragma omp taskwait in foo()
10480 #pragma omp for in foo()
10482 #pragma omp flush in foo()
10485 #pragma omp for in foo()
10487 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'for' region; perhap… in foo()
10490 #pragma omp for ordered in foo()
10492 #pragma omp ordered // OK in foo()
10495 #pragma omp for in foo()
10497 #pragma omp atomic in foo()
10500 #pragma omp for in foo()
10502 #pragma omp target in foo()
10505 #pragma omp for in foo()
10507 #pragma omp target parallel in foo()
10510 #pragma omp for in foo()
10512 #pragma omp target parallel for in foo()
10516 #pragma omp for in foo()
10518 #pragma omp target enter data map(to: a) in foo()
10521 #pragma omp for in foo()
10523 #pragma omp target exit data map(from: a) in foo()
10526 #pragma omp for in foo()
10528 #pragma omp teams // expected-error {{region cannot be closely nested inside 'for' region; perhaps … in foo()
10531 #pragma omp for in foo()
10533 #pragma omp taskloop in foo()
10537 #pragma omp for in foo()
10539 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'for' region; per… in foo()
10543 #pragma omp for in foo()
10545 #pragma omp target update to(a) in foo()
10548 #pragma omp for in foo()
10550 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'for… in foo()
10554 #pragma omp for in foo()
10556 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
10560 #pragma omp for in foo()
10562 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'for' region… in foo()
10566 #pragma omp for in foo()
10568 #pragma omp target simd // OK in foo()
10572 #pragma omp for in foo()
10574 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'for' regio… in foo()
10578 #pragma omp for in foo()
10580 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'for' … in foo()
10584 #pragma omp for in foo()
10586 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
10590 #pragma omp for in foo()
10592 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
10596 #pragma omp for in foo()
10598 #pragma omp target teams // OK in foo()
10601 #pragma omp for in foo()
10603 #pragma omp target teams distribute // OK in foo()
10607 #pragma omp for in foo()
10609 #pragma omp target teams distribute parallel for // OK in foo()
10613 #pragma omp for in foo()
10615 #pragma omp target teams distribute parallel for simd // OK in foo()
10619 #pragma omp for in foo()
10621 #pragma omp target teams distribute simd // OK in foo()
10627 #pragma omp for simd in foo()
10629 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10633 #pragma omp for simd in foo()
10635 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
10639 #pragma omp for simd in foo()
10641 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10645 #pragma omp for simd in foo()
10647 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10651 #pragma omp for simd in foo()
10653 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10658 #pragma omp for simd in foo()
10660 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10665 #pragma omp for simd in foo()
10667 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10669 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10672 #pragma omp for simd in foo()
10674 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10676 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10679 #pragma omp for simd in foo()
10681 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
10685 #pragma omp for simd in foo()
10687 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
10691 #pragma omp for simd in foo()
10693 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
10698 #pragma omp for simd in foo()
10700 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10705 #pragma omp for simd in foo()
10707 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10710 #pragma omp for simd in foo()
10712 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10715 #pragma omp for simd in foo()
10717 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
10720 #pragma omp for simd in foo()
10722 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10725 #pragma omp for simd in foo()
10727 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10730 #pragma omp for simd in foo()
10732 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10735 #pragma omp for simd in foo()
10737 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10740 #pragma omp for simd in foo()
10742 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10745 #pragma omp for simd in foo()
10747 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
10750 #pragma omp for simd in foo()
10752 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
10756 #pragma omp for simd in foo()
10758 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
10761 #pragma omp for simd in foo()
10763 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
10766 #pragma omp for simd in foo()
10768 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10771 #pragma omp for simd in foo()
10773 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
10777 #pragma omp for simd in foo()
10779 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
10783 #pragma omp for simd in foo()
10785 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
10788 #pragma omp for simd in foo()
10790 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
10794 #pragma omp for simd in foo()
10796 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
10800 #pragma omp for simd in foo()
10802 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
10806 #pragma omp for simd in foo()
10808 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
10812 #pragma omp for simd in foo()
10814 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
10818 #pragma omp for simd in foo()
10820 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
10824 #pragma omp for simd in foo()
10826 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
10830 #pragma omp for simd in foo()
10832 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
10836 #pragma omp for simd in foo()
10838 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
10841 #pragma omp for simd in foo()
10843 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
10847 #pragma omp for simd in foo()
10849 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
10853 #pragma omp for simd in foo()
10855 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
10859 #pragma omp for simd in foo()
10861 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
10867 #pragma omp sections in foo()
10869 #pragma omp for // expected-error {{region cannot be closely nested inside 'sections' region; perha… in foo()
10873 #pragma omp sections in foo()
10875 #pragma omp simd in foo()
10879 #pragma omp sections in foo()
10881 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'sections' region; … in foo()
10885 #pragma omp sections in foo()
10887 #pragma omp parallel in foo()
10891 #pragma omp sections in foo()
10893 #pragma omp sections // expected-error {{region cannot be closely nested inside 'sections' region; … in foo()
10898 #pragma omp sections in foo()
10900 #pragma omp section in foo()
10905 #pragma omp sections in foo()
10907 #pragma omp critical in foo()
10909 #pragma omp single // expected-error {{region cannot be closely nested inside 'sections' region; pe… in foo()
10911 #pragma omp master // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
10914 #pragma omp sections in foo()
10916 #pragma omp parallel in foo()
10918 #pragma omp single // OK in foo()
10922 #pragma omp for // OK in foo()
10925 #pragma omp for simd // OK in foo()
10928 #pragma omp sections // OK in foo()
10934 #pragma omp sections in foo()
10936 #pragma omp parallel for in foo()
10940 #pragma omp sections in foo()
10942 #pragma omp parallel for simd in foo()
10946 #pragma omp sections in foo()
10948 #pragma omp parallel sections in foo()
10953 #pragma omp sections in foo()
10955 #pragma omp task in foo()
10960 #pragma omp sections in foo()
10962 #pragma omp taskyield in foo()
10964 #pragma omp sections in foo()
10966 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
10969 #pragma omp sections in foo()
10971 #pragma omp scan // expected-error {{region cannot be closely nested inside 'sections' region}} in foo()
10974 #pragma omp sections in foo()
10976 #pragma omp taskwait in foo()
10978 #pragma omp sections in foo()
10980 #pragma omp flush in foo()
10982 #pragma omp sections in foo()
10984 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'sections' region; p… in foo()
10987 #pragma omp sections in foo()
10989 #pragma omp atomic in foo()
10992 #pragma omp sections in foo()
10994 #pragma omp target in foo()
10997 #pragma omp sections in foo()
10999 #pragma omp target parallel in foo()
11002 #pragma omp sections in foo()
11004 #pragma omp target parallel for in foo()
11008 #pragma omp sections in foo()
11010 #pragma omp target enter data map(to: a) in foo()
11012 #pragma omp sections in foo()
11014 #pragma omp target exit data map(from: a) in foo()
11016 #pragma omp sections in foo()
11018 #pragma omp teams // expected-error {{region cannot be closely nested inside 'sections' region; per… in foo()
11021 #pragma omp sections in foo()
11023 #pragma omp taskloop in foo()
11027 #pragma omp sections in foo()
11029 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'sections' region… in foo()
11033 #pragma omp sections in foo()
11035 #pragma omp target update to(a) in foo()
11037 #pragma omp sections in foo()
11039 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sec… in foo()
11043 #pragma omp sections in foo()
11045 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
11049 #pragma omp sections in foo()
11051 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'sections' r… in foo()
11055 #pragma omp sections in foo()
11057 #pragma omp target simd // OK in foo()
11061 #pragma omp sections in foo()
11063 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'sections' … in foo()
11067 #pragma omp sections in foo()
11069 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'secti… in foo()
11073 #pragma omp sections in foo()
11075 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
11079 #pragma omp sections in foo()
11081 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
11085 #pragma omp sections in foo()
11087 #pragma omp target teams // OK in foo()
11090 #pragma omp sections in foo()
11092 #pragma omp target teams distribute // OK in foo()
11096 #pragma omp sections in foo()
11098 #pragma omp target teams distribute parallel for // OK in foo()
11102 #pragma omp sections in foo()
11104 #pragma omp target teams distribute parallel for simd // OK in foo()
11108 #pragma omp sections in foo()
11110 #pragma omp target teams distribute simd // OK in foo()
11116 #pragma omp section // expected-error {{orphaned 'omp section' directives are prohibited, it must b… in foo()
11120 #pragma omp sections in foo()
11122 #pragma omp section in foo()
11124 #pragma omp for // expected-error {{region cannot be closely nested inside 'section' region; perhap… in foo()
11129 #pragma omp sections in foo()
11131 #pragma omp section in foo()
11133 #pragma omp simd in foo()
11138 #pragma omp sections in foo()
11140 #pragma omp section in foo()
11142 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'section' region; p… in foo()
11147 #pragma omp sections in foo()
11149 #pragma omp section in foo()
11151 #pragma omp parallel in foo()
11156 #pragma omp sections in foo()
11158 #pragma omp section in foo()
11160 #pragma omp sections // expected-error {{region cannot be closely nested inside 'section' region; p… in foo()
11166 #pragma omp sections in foo()
11168 #pragma omp section in foo()
11170 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
11176 #pragma omp sections in foo()
11178 #pragma omp section in foo()
11180 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; per… in foo()
11182 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
11184 #pragma omp critical in foo()
11188 #pragma omp sections in foo()
11190 #pragma omp section in foo()
11192 #pragma omp parallel in foo()
11194 #pragma omp single // OK in foo()
11198 #pragma omp for // OK in foo()
11201 #pragma omp for simd // OK in foo()
11204 #pragma omp sections // OK in foo()
11211 #pragma omp sections in foo()
11213 #pragma omp section in foo()
11215 #pragma omp parallel for in foo()
11220 #pragma omp sections in foo()
11222 #pragma omp section in foo()
11224 #pragma omp parallel for simd in foo()
11229 #pragma omp sections in foo()
11231 #pragma omp section in foo()
11233 #pragma omp parallel sections in foo()
11239 #pragma omp sections in foo()
11241 #pragma omp section in foo()
11243 #pragma omp task in foo()
11249 #pragma omp sections in foo()
11251 #pragma omp section in foo()
11253 #pragma omp taskyield in foo()
11257 #pragma omp sections in foo()
11259 #pragma omp section in foo()
11261 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
11265 #pragma omp sections in foo()
11267 #pragma omp section in foo()
11269 #pragma omp scan // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
11273 #pragma omp sections in foo()
11275 #pragma omp section in foo()
11277 #pragma omp taskwait in foo()
11281 #pragma omp sections in foo()
11283 #pragma omp section in foo()
11285 #pragma omp flush in foo()
11289 #pragma omp sections in foo()
11291 #pragma omp section in foo()
11293 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'section' region; pe… in foo()
11297 #pragma omp sections in foo()
11299 #pragma omp section in foo()
11301 #pragma omp atomic in foo()
11305 #pragma omp sections in foo()
11307 #pragma omp section in foo()
11309 #pragma omp target in foo()
11313 #pragma omp sections in foo()
11315 #pragma omp section in foo()
11317 #pragma omp target parallel in foo()
11321 #pragma omp sections in foo()
11323 #pragma omp section in foo()
11325 #pragma omp target parallel for in foo()
11330 #pragma omp sections in foo()
11332 #pragma omp section in foo()
11334 #pragma omp target enter data map(to: a) in foo()
11338 #pragma omp sections in foo()
11340 #pragma omp section in foo()
11342 #pragma omp target exit data map(from: a) in foo()
11346 #pragma omp sections in foo()
11348 #pragma omp section in foo()
11350 #pragma omp teams // expected-error {{region cannot be closely nested inside 'section' region; perh… in foo()
11354 #pragma omp sections in foo()
11356 #pragma omp section in foo()
11358 #pragma omp taskloop in foo()
11363 #pragma omp sections in foo()
11365 #pragma omp section in foo()
11366 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'section' region;… in foo()
11370 #pragma omp sections in foo()
11372 #pragma omp section in foo()
11374 #pragma omp target update to(a) in foo()
11378 #pragma omp sections in foo()
11380 #pragma omp section in foo()
11381 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sec… in foo()
11385 #pragma omp sections in foo()
11387 #pragma omp section in foo()
11388 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
11392 #pragma omp sections in foo()
11394 #pragma omp section in foo()
11395 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'section' re… in foo()
11399 #pragma omp sections in foo()
11401 #pragma omp section in foo()
11402 #pragma omp target simd // OK in foo()
11406 #pragma omp sections in foo()
11408 #pragma omp section in foo()
11409 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'section' r… in foo()
11413 #pragma omp sections in foo()
11415 #pragma omp section in foo()
11416 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'secti… in foo()
11420 #pragma omp sections in foo()
11422 #pragma omp section in foo()
11423 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
11427 #pragma omp sections in foo()
11429 #pragma omp section in foo()
11430 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
11434 #pragma omp sections in foo()
11436 #pragma omp section in foo()
11437 #pragma omp target teams // OK in foo()
11440 #pragma omp sections in foo()
11442 #pragma omp section in foo()
11443 #pragma omp target teams distribute // OK in foo()
11447 #pragma omp sections in foo()
11449 #pragma omp section in foo()
11450 #pragma omp target teams distribute parallel for // OK in foo()
11454 #pragma omp sections in foo()
11456 #pragma omp section in foo()
11457 #pragma omp target teams distribute parallel for simd // OK in foo()
11461 #pragma omp sections in foo()
11463 #pragma omp section in foo()
11464 #pragma omp target teams distribute simd // OK in foo()
11470 #pragma omp single in foo()
11472 #pragma omp for // expected-error {{region cannot be closely nested inside 'single' region; perhaps… in foo()
11476 #pragma omp single in foo()
11478 #pragma omp simd in foo()
11482 #pragma omp single in foo()
11484 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'single' region; pe… in foo()
11488 #pragma omp single in foo()
11490 #pragma omp parallel in foo()
11494 #pragma omp single in foo()
11496 #pragma omp single // expected-error {{region cannot be closely nested inside 'single' region; perh… in foo()
11500 #pragma omp master // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
11502 #pragma omp critical in foo()
11505 #pragma omp single in foo()
11507 #pragma omp sections // expected-error {{region cannot be closely nested inside 'single' region; pe… in foo()
11512 #pragma omp single in foo()
11514 #pragma omp parallel in foo()
11516 #pragma omp single // OK in foo()
11520 #pragma omp for // OK in foo()
11523 #pragma omp for simd // OK in foo()
11526 #pragma omp sections // OK in foo()
11532 #pragma omp single in foo()
11534 #pragma omp parallel for in foo()
11538 #pragma omp single in foo()
11540 #pragma omp parallel for simd in foo()
11544 #pragma omp single in foo()
11546 #pragma omp parallel sections in foo()
11551 #pragma omp single in foo()
11553 #pragma omp task in foo()
11558 #pragma omp single in foo()
11560 #pragma omp taskyield in foo()
11563 #pragma omp single in foo()
11565 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
11568 #pragma omp single in foo()
11570 #pragma omp scan // expected-error {{region cannot be closely nested inside 'single' region}} in foo()
11573 #pragma omp single in foo()
11575 #pragma omp taskwait in foo()
11578 #pragma omp single in foo()
11580 #pragma omp flush in foo()
11583 #pragma omp single in foo()
11585 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'single' region; per… in foo()
11588 #pragma omp single in foo()
11590 #pragma omp atomic in foo()
11593 #pragma omp single in foo()
11595 #pragma omp target in foo()
11598 #pragma omp single in foo()
11600 #pragma omp target parallel in foo()
11603 #pragma omp single in foo()
11605 #pragma omp target parallel for in foo()
11609 #pragma omp single in foo()
11611 #pragma omp target enter data map(to: a) in foo()
11614 #pragma omp single in foo()
11616 #pragma omp target exit data map(from: a) in foo()
11619 #pragma omp single in foo()
11621 #pragma omp teams // expected-error {{region cannot be closely nested inside 'single' region; perha… in foo()
11624 #pragma omp single in foo()
11626 #pragma omp taskloop in foo()
11630 #pragma omp single in foo()
11632 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'single' region; … in foo()
11636 #pragma omp single in foo()
11638 #pragma omp target update to(a) in foo()
11641 #pragma omp single in foo()
11643 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sin… in foo()
11647 #pragma omp single in foo()
11649 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
11653 #pragma omp single in foo()
11655 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'single' reg… in foo()
11659 #pragma omp single in foo()
11661 #pragma omp target simd // OK in foo()
11665 #pragma omp single in foo()
11667 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'single' re… in foo()
11671 #pragma omp single in foo()
11673 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'singl… in foo()
11677 #pragma omp single in foo()
11679 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
11683 #pragma omp single in foo()
11685 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
11689 #pragma omp single in foo()
11691 #pragma omp target teams // oK in foo()
11694 #pragma omp single in foo()
11696 #pragma omp target teams distribute // OK in foo()
11700 #pragma omp single in foo()
11702 #pragma omp target teams distribute parallel for // OK in foo()
11706 #pragma omp single in foo()
11708 #pragma omp target teams distribute parallel for simd // OK in foo()
11712 #pragma omp single in foo()
11714 #pragma omp target teams distribute simd // OK in foo()
11720 #pragma omp master in foo()
11722 #pragma omp for // expected-error {{region cannot be closely nested inside 'master' region; perhaps… in foo()
11726 #pragma omp master in foo()
11728 #pragma omp simd in foo()
11732 #pragma omp master in foo()
11734 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'master' region; pe… in foo()
11738 #pragma omp master in foo()
11740 #pragma omp parallel in foo()
11744 #pragma omp parallel master in foo()
11749 #pragma omp master in foo()
11751 #pragma omp single // expected-error {{region cannot be closely nested inside 'master' region; perh… in foo()
11756 #pragma omp master in foo()
11758 #pragma omp master // OK, though second 'master' is redundant in foo()
11763 #pragma omp master in foo()
11765 #pragma omp critical in foo()
11770 #pragma omp master in foo()
11772 #pragma omp sections // expected-error {{region cannot be closely nested inside 'master' region; pe… in foo()
11777 #pragma omp master in foo()
11779 #pragma omp parallel in foo()
11781 #pragma omp master // OK in foo()
11785 #pragma omp for // OK in foo()
11788 #pragma omp for simd // OK in foo()
11791 #pragma omp sections // OK in foo()
11797 #pragma omp master in foo()
11799 #pragma omp parallel master in foo()
11804 #pragma omp master in foo()
11806 #pragma omp parallel for in foo()
11810 #pragma omp master in foo()
11812 #pragma omp parallel for simd in foo()
11816 #pragma omp master in foo()
11818 #pragma omp parallel sections in foo()
11823 #pragma omp master in foo()
11825 #pragma omp task in foo()
11830 #pragma omp master in foo()
11832 #pragma omp taskyield in foo()
11835 #pragma omp master in foo()
11837 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'master' region}} in foo()
11840 #pragma omp master in foo()
11842 #pragma omp scan // expected-error {{region cannot be closely nested inside 'master' region}} in foo()
11845 #pragma omp master in foo()
11847 #pragma omp taskwait in foo()
11850 #pragma omp master in foo()
11852 #pragma omp flush in foo()
11855 #pragma omp master in foo()
11857 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'master' region; per… in foo()
11860 #pragma omp master in foo()
11862 #pragma omp atomic in foo()
11865 #pragma omp master in foo()
11867 #pragma omp target in foo()
11870 #pragma omp master in foo()
11872 #pragma omp target parallel in foo()
11875 #pragma omp master in foo()
11877 #pragma omp target parallel for in foo()
11881 #pragma omp master in foo()
11883 #pragma omp target enter data map(to: a) in foo()
11886 #pragma omp master in foo()
11888 #pragma omp target exit data map(from: a) in foo()
11891 #pragma omp master in foo()
11893 #pragma omp teams // expected-error {{region cannot be closely nested inside 'master' region; perha… in foo()
11896 #pragma omp master in foo()
11898 #pragma omp taskloop in foo()
11902 #pragma omp master in foo()
11904 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'master' region; … in foo()
11908 #pragma omp master in foo()
11910 #pragma omp target update to(a) in foo()
11913 #pragma omp master in foo()
11915 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'mas… in foo()
11919 #pragma omp master in foo()
11921 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
11925 #pragma omp master in foo()
11927 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'master' reg… in foo()
11931 #pragma omp master in foo()
11933 #pragma omp target simd // OK in foo()
11937 #pragma omp master in foo()
11939 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'master' re… in foo()
11943 #pragma omp master in foo()
11945 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'maste… in foo()
11949 #pragma omp master in foo()
11951 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
11955 #pragma omp master in foo()
11957 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
11961 #pragma omp master in foo()
11963 #pragma omp target teams // OK in foo()
11966 #pragma omp master in foo()
11968 #pragma omp target teams distribute // OK in foo()
11972 #pragma omp master in foo()
11974 #pragma omp target teams distribute parallel for // OK in foo()
11978 #pragma omp master in foo()
11980 #pragma omp target teams distribute parallel for simd // OK in foo()
11984 #pragma omp master in foo()
11986 #pragma omp target teams distribute simd // OK in foo()
11992 #pragma omp critical in foo()
11994 #pragma omp for // expected-error {{region cannot be closely nested inside 'critical' region; perha… in foo()
11998 #pragma omp critical in foo()
12000 #pragma omp simd in foo()
12004 #pragma omp critical in foo()
12006 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'critical' region; … in foo()
12010 #pragma omp critical in foo()
12012 #pragma omp parallel in foo()
12016 #pragma omp critical in foo()
12018 #pragma omp single // expected-error {{region cannot be closely nested inside 'critical' region; pe… in foo()
12023 #pragma omp critical in foo()
12025 #pragma omp master // OK, though second 'master' is redundant in foo()
12030 #pragma omp critical in foo()
12032 #pragma omp critical in foo()
12037 #pragma omp critical in foo()
12039 #pragma omp sections // expected-error {{region cannot be closely nested inside 'critical' region; … in foo()
12044 #pragma omp critical in foo()
12046 #pragma omp parallel in foo()
12048 #pragma omp master // OK in foo()
12052 #pragma omp for // OK in foo()
12055 #pragma omp for simd // OK in foo()
12058 #pragma omp sections // OK in foo()
12064 #pragma omp critical in foo()
12066 #pragma omp parallel for in foo()
12070 #pragma omp critical in foo()
12072 #pragma omp parallel for simd in foo()
12076 #pragma omp critical in foo()
12078 #pragma omp parallel sections in foo()
12083 #pragma omp critical in foo()
12085 #pragma omp task in foo()
12090 #pragma omp critical in foo()
12092 #pragma omp taskyield in foo()
12095 #pragma omp critical in foo()
12097 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'critical' region}} in foo()
12100 #pragma omp critical in foo()
12102 #pragma omp scan // expected-error {{region cannot be closely nested inside 'critical' region}} in foo()
12105 #pragma omp critical in foo()
12107 #pragma omp taskwait in foo()
12110 #pragma omp critical(Belka) in foo()
12112 #pragma omp critical(Strelka) in foo()
12115 #pragma omp critical(Tuzik) // expected-note {{previous 'critical' region starts here}} in foo()
12117 #pragma omp critical(grelka) // expected-note {{previous 'critical' region starts here}} in foo()
12119 #pragma omp critical(Tuzik) // expected-error {{cannot nest 'critical' regions having the same name… in foo()
12121 #pragma omp parallel in foo()
12122 #pragma omp critical(grelka) // expected-error {{cannot nest 'critical' regions having the same nam… in foo()
12129 #pragma omp critical in foo()
12131 #pragma omp flush in foo()
12134 #pragma omp critical in foo()
12136 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'critical' region; p… in foo()
12139 #pragma omp critical in foo()
12141 #pragma omp atomic in foo()
12144 #pragma omp critical in foo()
12146 #pragma omp target in foo()
12149 #pragma omp critical in foo()
12151 #pragma omp target parallel in foo()
12154 #pragma omp critical in foo()
12156 #pragma omp target parallel for in foo()
12160 #pragma omp critical in foo()
12162 #pragma omp target enter data map(to: a) in foo()
12165 #pragma omp critical in foo()
12167 #pragma omp target exit data map(from: a) in foo()
12170 #pragma omp critical in foo()
12172 #pragma omp teams // expected-error {{region cannot be closely nested inside 'critical' region; per… in foo()
12175 #pragma omp critical in foo()
12177 #pragma omp taskloop in foo()
12181 #pragma omp critical in foo()
12183 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'critical' region… in foo()
12187 #pragma omp critical in foo()
12189 #pragma omp target update to(a) in foo()
12192 #pragma omp critical in foo()
12194 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'cri… in foo()
12198 #pragma omp critical in foo()
12200 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
12204 #pragma omp critical in foo()
12206 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'critical' r… in foo()
12210 #pragma omp critical in foo()
12212 #pragma omp target simd // OK in foo()
12216 #pragma omp critical in foo()
12218 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'critical' … in foo()
12222 #pragma omp critical in foo()
12224 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'criti… in foo()
12228 #pragma omp critical in foo()
12230 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
12234 #pragma omp critical in foo()
12236 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
12240 #pragma omp critical in foo()
12242 #pragma omp target teams // OK in foo()
12245 #pragma omp critical in foo()
12247 #pragma omp target teams distribute // OK in foo()
12251 #pragma omp critical in foo()
12253 #pragma omp target teams distribute parallel for // OK in foo()
12257 #pragma omp critical in foo()
12259 #pragma omp target teams distribute parallel for simd // OK in foo()
12263 #pragma omp critical in foo()
12265 #pragma omp target teams distribute simd // OK in foo()
12271 #pragma omp parallel for in foo()
12273 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel for' region; p… in foo()
12277 #pragma omp parallel for in foo()
12279 #pragma omp simd in foo()
12283 #pragma omp parallel for in foo()
12285 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel for' regi… in foo()
12290 #pragma omp parallel for in foo()
12292 #pragma omp parallel in foo()
12296 #pragma omp parallel for in foo()
12298 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel for' regi… in foo()
12303 #pragma omp parallel for in foo()
12305 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
12310 #pragma omp parallel for in foo()
12312 #pragma omp single // expected-error {{region cannot be closely nested inside 'parallel for' region… in foo()
12316 #pragma omp master // expected-error {{region cannot be closely nested inside 'parallel for' region… in foo()
12320 #pragma omp critical in foo()
12325 #pragma omp parallel for in foo()
12327 #pragma omp parallel in foo()
12329 #pragma omp single // OK in foo()
12333 #pragma omp master // OK in foo()
12337 #pragma omp critical // OK in foo()
12341 #pragma omp for // OK in foo()
12344 #pragma omp for simd // OK in foo()
12347 #pragma omp sections // OK in foo()
12353 #pragma omp parallel for in foo()
12355 #pragma omp parallel for in foo()
12359 #pragma omp parallel for in foo()
12361 #pragma omp parallel for simd in foo()
12365 #pragma omp parallel for in foo()
12367 #pragma omp parallel sections in foo()
12372 #pragma omp parallel for in foo()
12374 #pragma omp task in foo()
12379 #pragma omp parallel for in foo()
12381 #pragma omp taskyield in foo()
12384 #pragma omp parallel for in foo()
12386 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel for' regio… in foo()
12389 #pragma omp parallel for in foo()
12391 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'parallel for' region}} om… in foo()
12394 #pragma omp parallel for in foo()
12396 #pragma omp taskwait in foo()
12399 #pragma omp parallel for in foo()
12401 #pragma omp flush in foo()
12404 #pragma omp parallel for in foo()
12406 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel for' regio… in foo()
12409 #pragma omp parallel for ordered in foo()
12411 #pragma omp ordered // OK in foo()
12414 #pragma omp parallel for in foo()
12416 #pragma omp atomic in foo()
12419 #pragma omp parallel for in foo()
12421 #pragma omp target in foo()
12424 #pragma omp parallel for in foo()
12426 #pragma omp target parallel in foo()
12429 #pragma omp parallel for in foo()
12431 #pragma omp target parallel for in foo()
12435 #pragma omp parallel for in foo()
12437 #pragma omp target enter data map(to: a) in foo()
12440 #pragma omp parallel for in foo()
12442 #pragma omp target exit data map(from: a) in foo()
12445 #pragma omp parallel for in foo()
12447 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel for' region;… in foo()
12450 #pragma omp parallel for in foo()
12452 #pragma omp taskloop in foo()
12456 #pragma omp parallel for in foo()
12458 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel for' re… in foo()
12462 #pragma omp parallel for in foo()
12464 #pragma omp target update to(a) in foo()
12467 #pragma omp parallel for in foo()
12469 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
12473 #pragma omp parallel for in foo()
12475 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
12479 #pragma omp parallel for in foo()
12481 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel fo… in foo()
12485 #pragma omp parallel for in foo()
12487 #pragma omp target simd // OK in foo()
12491 #pragma omp parallel for in foo()
12493 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel f… in foo()
12497 #pragma omp parallel for in foo()
12499 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
12503 #pragma omp parallel for in foo()
12505 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
12509 #pragma omp parallel for in foo()
12511 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
12515 #pragma omp parallel for in foo()
12517 #pragma omp target teams // OK in foo()
12520 #pragma omp parallel for in foo()
12522 #pragma omp target teams distribute // OK in foo()
12526 #pragma omp parallel for in foo()
12528 #pragma omp target teams distribute parallel for // OK in foo()
12532 #pragma omp parallel for in foo()
12534 #pragma omp target teams distribute parallel for simd // OK in foo()
12538 #pragma omp parallel for in foo()
12540 #pragma omp target teams distribute simd // OK in foo()
12546 #pragma omp parallel for simd in foo()
12548 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12552 #pragma omp parallel for simd in foo()
12554 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
12558 #pragma omp parallel for simd in foo()
12560 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12564 #pragma omp parallel for simd in foo()
12566 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12570 #pragma omp parallel for simd in foo()
12572 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12577 #pragma omp parallel for simd in foo()
12579 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12584 #pragma omp parallel for simd in foo()
12586 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12592 #pragma omp parallel for simd in foo()
12594 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12600 #pragma omp parallel for simd in foo()
12602 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12608 #pragma omp parallel for simd in foo()
12610 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12612 #pragma omp single in foo()
12616 #pragma omp for in foo()
12619 #pragma omp for simd in foo()
12622 #pragma omp sections in foo()
12628 #pragma omp parallel for simd in foo()
12630 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
12634 #pragma omp parallel for simd in foo()
12636 #pragma omp parallel for simd// expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
12640 #pragma omp parallel for simd in foo()
12642 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
12647 #pragma omp parallel for simd in foo()
12649 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12654 #pragma omp parallel for simd in foo()
12656 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12659 #pragma omp parallel for simd in foo()
12661 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12664 #pragma omp parallel for simd in foo()
12666 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
12669 #pragma omp parallel for simd in foo()
12671 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12674 #pragma omp parallel for simd in foo()
12676 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12679 #pragma omp parallel for simd in foo()
12681 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12684 #pragma omp parallel for simd in foo()
12686 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12689 #pragma omp parallel for simd in foo()
12691 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12694 #pragma omp parallel for simd in foo()
12696 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12699 #pragma omp parallel for simd in foo()
12701 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
12704 #pragma omp parallel for simd in foo()
12706 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
12710 #pragma omp parallel for simd in foo()
12712 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
12715 #pragma omp parallel for simd in foo()
12717 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
12720 #pragma omp parallel for simd in foo()
12722 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12725 #pragma omp parallel for simd in foo()
12727 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
12731 #pragma omp parallel for simd in foo()
12733 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
12737 #pragma omp parallel for simd in foo()
12739 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
12742 #pragma omp parallel for simd in foo()
12744 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside … in foo()
12748 #pragma omp parallel for simd in foo()
12750 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
12754 #pragma omp parallel for simd in foo()
12756 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
12760 #pragma omp parallel for simd in foo()
12762 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
12766 #pragma omp parallel for simd in foo()
12768 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
12772 #pragma omp parallel for simd in foo()
12774 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
12778 #pragma omp parallel for simd in foo()
12780 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
12784 #pragma omp parallel for simd in foo()
12786 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
12790 #pragma omp parallel for simd in foo()
12792 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
12795 #pragma omp parallel for simd in foo()
12797 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
12801 #pragma omp parallel for simd in foo()
12803 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
12807 #pragma omp parallel for simd in foo()
12809 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
12813 #pragma omp parallel for simd in foo()
12815 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
12821 #pragma omp parallel sections in foo()
12823 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel sections' regi… in foo()
12827 #pragma omp parallel sections in foo()
12829 #pragma omp simd in foo()
12833 #pragma omp parallel sections in foo()
12835 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel sections'… in foo()
12839 #pragma omp parallel sections in foo()
12841 #pragma omp parallel in foo()
12845 #pragma omp parallel sections in foo()
12847 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel sections'… in foo()
12852 #pragma omp parallel sections in foo()
12854 #pragma omp section in foo()
12859 #pragma omp parallel sections in foo()
12861 #pragma omp section in foo()
12863 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; per… in foo()
12865 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}} in foo()
12867 #pragma omp critical in foo()
12871 #pragma omp parallel sections in foo()
12873 #pragma omp parallel in foo()
12875 #pragma omp single // OK in foo()
12879 #pragma omp master // OK in foo()
12883 #pragma omp critical // OK in foo()
12887 #pragma omp for // OK in foo()
12890 #pragma omp for simd // OK in foo()
12893 #pragma omp sections // OK in foo()
12899 #pragma omp parallel sections in foo()
12901 #pragma omp parallel for in foo()
12905 #pragma omp parallel sections in foo()
12907 #pragma omp parallel for simd in foo()
12911 #pragma omp parallel sections in foo()
12913 #pragma omp parallel sections in foo()
12918 #pragma omp parallel sections in foo()
12920 #pragma omp task in foo()
12925 #pragma omp parallel sections in foo()
12927 #pragma omp taskyield in foo()
12929 #pragma omp parallel sections in foo()
12931 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel sections' … in foo()
12933 #pragma omp parallel sections in foo()
12935 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel sections' reg… in foo()
12937 #pragma omp parallel sections in foo()
12939 #pragma omp taskwait in foo()
12941 #pragma omp parallel sections in foo()
12943 #pragma omp flush in foo()
12945 #pragma omp parallel sections in foo()
12947 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel sections' … in foo()
12950 #pragma omp parallel sections in foo()
12952 #pragma omp atomic in foo()
12955 #pragma omp parallel sections in foo()
12957 #pragma omp target in foo()
12960 #pragma omp parallel sections in foo()
12962 #pragma omp target parallel in foo()
12965 #pragma omp parallel sections in foo()
12967 #pragma omp target parallel for in foo()
12971 #pragma omp parallel sections in foo()
12973 #pragma omp target enter data map(to: a) in foo()
12975 #pragma omp parallel sections in foo()
12977 #pragma omp target exit data map(from: a) in foo()
12979 #pragma omp parallel sections in foo()
12981 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel sections' re… in foo()
12984 #pragma omp parallel sections in foo()
12986 #pragma omp taskloop in foo()
12990 #pragma omp parallel sections in foo()
12992 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel section… in foo()
12996 #pragma omp parallel sections in foo()
12998 #pragma omp target update to(a) in foo()
13000 #pragma omp parallel sections in foo()
13002 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'par… in foo()
13006 #pragma omp parallel sections in foo()
13008 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
13012 #pragma omp parallel sections in foo()
13014 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel se… in foo()
13018 #pragma omp parallel sections in foo()
13020 #pragma omp target simd // OK in foo()
13024 #pragma omp parallel sections in foo()
13026 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel s… in foo()
13030 #pragma omp parallel sections in foo()
13032 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'paral… in foo()
13036 #pragma omp parallel sections in foo()
13038 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
13042 #pragma omp parallel sections in foo()
13044 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
13048 #pragma omp parallel sections in foo()
13050 #pragma omp target teams // OK in foo()
13053 #pragma omp parallel sections in foo()
13055 #pragma omp target teams distribute // OK in foo()
13059 #pragma omp parallel sections in foo()
13061 #pragma omp target teams distribute parallel for // OK in foo()
13065 #pragma omp parallel sections in foo()
13067 #pragma omp target teams distribute parallel for simd // OK in foo()
13071 #pragma omp parallel sections in foo()
13073 #pragma omp target teams distribute simd // OK in foo()
13079 #pragma omp task in foo()
13080 #pragma omp for // expected-error {{region cannot be closely nested inside 'task' region; perhaps y… in foo()
13083 #pragma omp task in foo()
13084 #pragma omp simd in foo()
13087 #pragma omp task in foo()
13088 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'task' region; perh… in foo()
13091 #pragma omp task in foo()
13092 #pragma omp sections // expected-error {{region cannot be closely nested inside 'task' region; perh… in foo()
13096 #pragma omp task in foo()
13097 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
13101 #pragma omp task in foo()
13102 #pragma omp single // expected-error {{region cannot be closely nested inside 'task' region; perhap… in foo()
13104 #pragma omp task in foo()
13105 #pragma omp master // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
13107 #pragma omp task in foo()
13108 #pragma omp critical in foo()
13110 #pragma omp task in foo()
13111 #pragma omp parallel for in foo()
13114 #pragma omp task in foo()
13115 #pragma omp parallel for simd in foo()
13118 #pragma omp task in foo()
13119 #pragma omp parallel sections in foo()
13123 #pragma omp task in foo()
13124 #pragma omp task in foo()
13128 #pragma omp task in foo()
13130 #pragma omp taskyield in foo()
13133 #pragma omp task in foo()
13135 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
13138 #pragma omp task in foo()
13140 #pragma omp scan // expected-error {{region cannot be closely nested inside 'task' region}} in foo()
13143 #pragma omp task in foo()
13145 #pragma omp taskwait in foo()
13148 #pragma omp task in foo()
13150 #pragma omp flush in foo()
13153 #pragma omp task in foo()
13155 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'task' region; perha… in foo()
13158 #pragma omp task in foo()
13160 #pragma omp atomic in foo()
13163 #pragma omp task in foo()
13165 #pragma omp target in foo()
13168 #pragma omp task in foo()
13170 #pragma omp target parallel in foo()
13173 #pragma omp task in foo()
13174 #pragma omp target parallel for in foo()
13177 #pragma omp task in foo()
13179 #pragma omp target enter data map(to: a) in foo()
13182 #pragma omp task in foo()
13184 #pragma omp target exit data map(from: a) in foo()
13187 #pragma omp task in foo()
13189 #pragma omp teams // expected-error {{region cannot be closely nested inside 'task' region; perhaps… in foo()
13192 #pragma omp task in foo()
13194 #pragma omp taskloop in foo()
13198 #pragma omp task in foo()
13200 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'task' region; pe… in foo()
13204 #pragma omp task in foo()
13206 #pragma omp target update to(a) in foo()
13209 #pragma omp task in foo()
13211 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tas… in foo()
13215 #pragma omp task in foo()
13217 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
13221 #pragma omp task in foo()
13223 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'task' regio… in foo()
13227 #pragma omp task in foo()
13229 #pragma omp target simd // OK in foo()
13233 #pragma omp task in foo()
13235 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'task' regi… in foo()
13239 #pragma omp task in foo()
13241 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'task'… in foo()
13245 #pragma omp task in foo()
13247 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
13251 #pragma omp task in foo()
13253 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
13257 #pragma omp task in foo()
13259 #pragma omp target teams // OK in foo()
13262 #pragma omp task in foo()
13264 #pragma omp target teams distribute // OK in foo()
13268 #pragma omp task in foo()
13270 #pragma omp target teams distribute parallel for // OK in foo()
13274 #pragma omp task in foo()
13276 #pragma omp target teams distribute parallel for simd // OK in foo()
13280 #pragma omp task in foo()
13282 #pragma omp target teams distribute simd // OK in foo()
13288 #pragma omp atomic in foo()
13292 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13296 #pragma omp atomic in foo()
13300 #pragma omp simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13304 #pragma omp atomic in foo()
13308 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
13312 #pragma omp atomic in foo()
13316 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
13320 #pragma omp atomic in foo()
13324 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
13329 #pragma omp atomic in foo()
13333 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
13338 #pragma omp atomic in foo()
13342 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13347 #pragma omp atomic in foo()
13351 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13356 #pragma omp atomic in foo()
13360 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
13365 #pragma omp atomic in foo()
13369 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic r… in foo()
13373 #pragma omp atomic in foo()
13377 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside an ato… in foo()
13381 #pragma omp atomic in foo()
13385 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside an ato… in foo()
13390 #pragma omp atomic in foo()
13394 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13399 #pragma omp atomic in foo()
13403 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside an atomic regi… in foo()
13406 #pragma omp atomic in foo()
13410 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
13413 #pragma omp atomic in foo()
13417 #pragma omp scan // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13420 #pragma omp atomic in foo()
13424 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
13427 #pragma omp atomic in foo()
13431 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13434 #pragma omp atomic in foo()
13438 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside an atomic region… in foo()
13441 #pragma omp atomic in foo()
13445 #pragma omp atomic // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13448 #pragma omp atomic in foo()
13452 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13455 #pragma omp atomic in foo()
13459 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside an atomi… in foo()
13462 #pragma omp atomic in foo()
13466 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside an a… in foo()
13470 #pragma omp atomic in foo()
13474 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
13477 #pragma omp atomic in foo()
13481 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
13484 #pragma omp atomic in foo()
13488 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside an atomic region}} in foo()
13491 #pragma omp atomic in foo()
13495 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside an atomic regio… in foo()
13499 #pragma omp atomic in foo()
13503 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside an atomic reg… in foo()
13507 #pragma omp atomic in foo()
13511 #pragma omp target update // expected-error {{OpenMP constructs may not be nested inside an atomic … in foo()
13513 #pragma omp atomic in foo()
13517 #pragma omp distribute parallel for// expected-error {{OpenMP constructs may not be nested inside a… in foo()
13521 #pragma omp atomic in foo()
13525 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
13529 #pragma omp atomic in foo()
13533 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside an atomi… in foo()
13537 #pragma omp atomic in foo()
13541 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside an atomic re… in foo()
13545 #pragma omp atomic in foo()
13549 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside an atom… in foo()
13553 #pragma omp atomic in foo()
13557 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside an… in foo()
13561 #pragma omp atomic in foo()
13565 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
13569 #pragma omp atomic in foo()
13573 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
13577 #pragma omp atomic in foo()
13581 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside an atomic r… in foo()
13584 #pragma omp atomic in foo()
13588 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
13592 #pragma omp atomic in foo()
13596 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
13600 #pragma omp atomic in foo()
13604 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
13608 #pragma omp atomic in foo()
13612 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
13618 #pragma omp target in foo()
13619 #pragma omp parallel in foo()
13621 #pragma omp target in foo()
13622 #pragma omp for in foo()
13625 #pragma omp target in foo()
13626 #pragma omp simd in foo()
13629 #pragma omp target in foo()
13630 #pragma omp for simd in foo()
13633 #pragma omp target in foo()
13634 #pragma omp sections in foo()
13638 #pragma omp target in foo()
13639 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
13643 #pragma omp target in foo()
13644 #pragma omp single in foo()
13647 #pragma omp target in foo()
13648 #pragma omp master in foo()
13652 #pragma omp target in foo()
13653 #pragma omp critical in foo()
13657 #pragma omp target in foo()
13658 #pragma omp parallel for in foo()
13661 #pragma omp target in foo()
13662 #pragma omp parallel for simd in foo()
13665 #pragma omp target in foo()
13666 #pragma omp parallel sections in foo()
13670 #pragma omp target in foo()
13671 #pragma omp task in foo()
13675 #pragma omp target in foo()
13677 #pragma omp taskyield in foo()
13680 #pragma omp target in foo()
13682 #pragma omp barrier in foo()
13685 #pragma omp target in foo()
13687 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target' region; perhap… in foo()
13690 #pragma omp target in foo()
13692 #pragma omp taskwait in foo()
13695 #pragma omp target in foo()
13697 #pragma omp flush in foo()
13700 #pragma omp target in foo()
13702 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target' region; per… in foo()
13705 #pragma omp target in foo()
13707 #pragma omp atomic in foo()
13710 #pragma omp target in foo()
13712 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
13715 #pragma omp target in foo()
13717 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
13720 #pragma omp target in foo()
13721 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
13724 #pragma omp target in foo()
13726 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
13728 #pragma omp target in foo()
13730 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
13732 #pragma omp target in foo()
13734 #pragma omp teams in foo()
13737 #pragma omp target // expected-error {{target construct with nested teams region contains statement… in foo()
13739 #pragma omp teams // expected-note {{directive outside teams construct here}} in foo()
13741 #pragma omp teams // expected-note {{nested teams construct here}} in foo()
13744 #pragma omp target // expected-error {{target construct with nested teams region contains statement… in foo()
13747 #pragma omp teams // expected-note {{nested teams construct here}} in foo()
13750 #pragma omp target in foo()
13752 #pragma omp taskloop in foo()
13756 #pragma omp target in foo()
13758 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target' region; … in foo()
13762 #pragma omp atomic in foo()
13766 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside an a… in foo()
13769 #pragma omp target in foo()
13771 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
13775 #pragma omp target in foo()
13777 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
13781 #pragma omp target in foo()
13783 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target' reg… in foo()
13787 #pragma omp target in foo()
13789 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
13793 #pragma omp target in foo()
13795 #pragma omp teams distribute // OK in foo()
13799 #pragma omp target in foo()
13801 #pragma omp teams distribute simd // OK in foo()
13805 #pragma omp target in foo()
13807 #pragma omp teams distribute parallel for simd // OK in foo()
13811 #pragma omp target in foo()
13813 #pragma omp teams distribute parallel for // OK in foo()
13817 #pragma omp target in foo()
13819 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
13822 #pragma omp target in foo()
13824 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
13828 #pragma omp target in foo()
13830 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
13834 #pragma omp target in foo()
13836 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
13840 #pragma omp target in foo()
13842 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
13848 #pragma omp target parallel in foo()
13849 #pragma omp parallel in foo()
13851 #pragma omp target parallel in foo()
13852 #pragma omp for in foo()
13855 #pragma omp target parallel in foo()
13856 #pragma omp simd in foo()
13859 #pragma omp target parallel in foo()
13860 #pragma omp for simd in foo()
13863 #pragma omp target parallel in foo()
13864 #pragma omp sections in foo()
13868 #pragma omp target parallel in foo()
13869 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
13873 #pragma omp target parallel in foo()
13874 #pragma omp single in foo()
13877 #pragma omp target parallel in foo()
13878 #pragma omp master in foo()
13882 #pragma omp target parallel in foo()
13883 #pragma omp critical in foo()
13887 #pragma omp target parallel in foo()
13888 #pragma omp parallel for in foo()
13891 #pragma omp target parallel in foo()
13892 #pragma omp parallel for simd in foo()
13895 #pragma omp target parallel in foo()
13896 #pragma omp parallel sections in foo()
13900 #pragma omp target parallel in foo()
13901 #pragma omp task in foo()
13905 #pragma omp target parallel in foo()
13907 #pragma omp taskyield in foo()
13910 #pragma omp target parallel in foo()
13912 #pragma omp barrier in foo()
13915 #pragma omp target parallel in foo()
13917 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel' regio… in foo()
13920 #pragma omp target parallel in foo()
13922 #pragma omp taskwait in foo()
13925 #pragma omp target parallel in foo()
13927 #pragma omp flush in foo()
13930 #pragma omp target parallel in foo()
13932 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel' re… in foo()
13935 #pragma omp target parallel in foo()
13937 #pragma omp atomic in foo()
13940 #pragma omp target parallel in foo()
13942 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel' region}} in foo()
13945 #pragma omp target parallel in foo()
13947 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel' re… in foo()
13950 #pragma omp target parallel in foo()
13951 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel… in foo()
13954 #pragma omp target parallel in foo()
13956 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' regi… in foo()
13959 #pragma omp target parallel in foo()
13962 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' reg… in foo()
13965 #pragma omp target parallel in foo()
13967 #pragma omp taskloop in foo()
13971 #pragma omp target parallel in foo()
13973 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel'… in foo()
13977 #pragma omp target parallel in foo()
13979 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
13981 #pragma omp target parallel in foo()
13983 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
13985 #pragma omp target parallel in foo()
13987 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel… in foo()
13989 #pragma omp target parallel in foo()
13991 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
13995 #pragma omp target parallel in foo()
13997 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
14001 #pragma omp target parallel in foo()
14003 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target para… in foo()
14007 #pragma omp target parallel in foo()
14009 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel' regio}} in foo()
14013 #pragma omp target parallel in foo()
14015 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target par… in foo()
14019 #pragma omp target parallel in foo()
14021 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
14025 #pragma omp target parallel in foo()
14027 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
14031 #pragma omp target parallel in foo()
14033 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
14037 #pragma omp target parallel in foo()
14039 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel' regio… in foo()
14042 #pragma omp target parallel in foo()
14044 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target para… in foo()
14048 #pragma omp target parallel in foo()
14050 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
14054 #pragma omp target parallel in foo()
14056 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
14060 #pragma omp target parallel in foo()
14062 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
14068 #pragma omp target parallel for in foo()
14070 #pragma omp for // expected-error {{region cannot be closely nested inside 'target parallel for' re… in foo()
14074 #pragma omp target parallel for in foo()
14076 #pragma omp simd in foo()
14080 #pragma omp target parallel for in foo()
14082 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target parallel fo… in foo()
14086 #pragma omp target parallel for in foo()
14088 #pragma omp parallel in foo()
14092 #pragma omp target parallel for in foo()
14094 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target parallel fo… in foo()
14099 #pragma omp target parallel for in foo()
14101 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
14106 #pragma omp target parallel for in foo()
14108 #pragma omp single // expected-error {{region cannot be closely nested inside 'target parallel for'… in foo()
14114 #pragma omp target parallel for in foo()
14116 #pragma omp master // expected-error {{region cannot be closely nested inside 'target parallel for'… in foo()
14122 #pragma omp target parallel for in foo()
14124 #pragma omp critical in foo()
14130 #pragma omp target parallel for in foo()
14132 #pragma omp parallel in foo()
14134 #pragma omp single // OK in foo()
14138 #pragma omp for // OK in foo()
14141 #pragma omp for simd // OK in foo()
14144 #pragma omp sections // OK in foo()
14150 #pragma omp target parallel for in foo()
14152 #pragma omp parallel for in foo()
14156 #pragma omp target parallel for in foo()
14158 #pragma omp parallel for simd in foo()
14162 #pragma omp target parallel for in foo()
14164 #pragma omp parallel sections in foo()
14169 #pragma omp target parallel for in foo()
14171 #pragma omp task in foo()
14176 #pragma omp target parallel for in foo()
14178 #pragma omp taskyield in foo()
14181 #pragma omp target parallel for in foo()
14183 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target parallel for… in foo()
14186 #pragma omp target parallel for in foo()
14188 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel for' r… in foo()
14191 #pragma omp target parallel for in foo()
14193 #pragma omp taskwait in foo()
14196 #pragma omp target parallel for in foo()
14198 #pragma omp flush in foo()
14201 #pragma omp target parallel for in foo()
14203 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel for… in foo()
14206 #pragma omp target parallel for ordered in foo()
14208 #pragma omp ordered // OK in foo()
14211 #pragma omp target parallel for in foo()
14213 #pragma omp atomic in foo()
14216 #pragma omp target parallel for in foo()
14218 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel for' region}} in foo()
14221 #pragma omp target parallel for in foo()
14223 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel for… in foo()
14226 #pragma omp target parallel for in foo()
14228 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel… in foo()
14232 #pragma omp target parallel for in foo()
14234 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
14237 #pragma omp target parallel for in foo()
14239 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
14242 #pragma omp target parallel for in foo()
14244 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel for' … in foo()
14247 #pragma omp target parallel for in foo()
14249 #pragma omp taskloop in foo()
14253 #pragma omp target parallel for in foo()
14255 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel … in foo()
14259 #pragma omp target parallel for in foo()
14261 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel… in foo()
14264 #pragma omp target parallel for in foo()
14266 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tar… in foo()
14270 #pragma omp target parallel for in foo()
14272 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
14276 #pragma omp target parallel for in foo()
14278 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target para… in foo()
14282 #pragma omp target parallel for in foo()
14284 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel for' re… in foo()
14288 #pragma omp target parallel for in foo()
14290 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target par… in foo()
14294 #pragma omp target parallel for in foo()
14296 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
14300 #pragma omp target parallel for in foo()
14302 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
14306 #pragma omp target parallel for in foo()
14308 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
14312 #pragma omp target parallel for in foo()
14314 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel for' r… in foo()
14317 #pragma omp target parallel for in foo()
14319 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target para… in foo()
14323 #pragma omp target parallel for in foo()
14325 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
14329 #pragma omp target parallel for in foo()
14331 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
14335 #pragma omp target parallel for in foo()
14337 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
14343 #pragma omp target in foo()
14344 #pragma omp teams in foo()
14345 #pragma omp parallel in foo()
14347 #pragma omp target in foo()
14348 #pragma omp teams in foo()
14349 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams' region; perhaps … in foo()
14352 #pragma omp target in foo()
14353 #pragma omp teams in foo()
14354 #pragma omp simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
14357 #pragma omp target in foo()
14358 #pragma omp teams in foo()
14359 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
14362 #pragma omp target in foo()
14363 #pragma omp teams in foo()
14364 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
14368 #pragma omp target in foo()
14369 #pragma omp teams in foo()
14370 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
14374 #pragma omp target in foo()
14375 #pragma omp teams in foo()
14376 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams' region; perha… in foo()
14379 #pragma omp target in foo()
14380 #pragma omp teams in foo()
14381 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams' region; perha… in foo()
14385 #pragma omp target in foo()
14386 #pragma omp teams in foo()
14387 #pragma omp critical // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
14391 #pragma omp target in foo()
14392 #pragma omp teams in foo()
14393 #pragma omp parallel for in foo()
14396 #pragma omp target in foo()
14397 #pragma omp teams in foo()
14398 #pragma omp parallel for simd in foo()
14401 #pragma omp target in foo()
14402 #pragma omp teams in foo()
14403 #pragma omp parallel sections in foo()
14407 #pragma omp target in foo()
14408 #pragma omp teams in foo()
14409 #pragma omp task // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
14413 #pragma omp target in foo()
14414 #pragma omp teams in foo()
14416 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'teams' region; pe… in foo()
14419 #pragma omp target in foo()
14420 #pragma omp teams in foo()
14422 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams' region; perh… in foo()
14425 #pragma omp target in foo()
14426 #pragma omp teams in foo()
14428 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams' region; perhaps… in foo()
14431 #pragma omp target in foo()
14432 #pragma omp teams in foo()
14434 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
14437 #pragma omp target in foo()
14438 #pragma omp teams in foo()
14440 #pragma omp flush // expected-error {{region cannot be closely nested inside 'teams' region; perhap… in foo()
14443 #pragma omp target in foo()
14444 #pragma omp teams in foo()
14446 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams' region; perh… in foo()
14449 #pragma omp target in foo()
14450 #pragma omp teams in foo()
14452 #pragma omp atomic // omp-error {{region cannot be closely nested inside 'teams' region; perhaps yo… in foo()
14455 #pragma omp target in foo()
14456 #pragma omp teams in foo()
14458 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
14461 #pragma omp target in foo()
14462 #pragma omp teams in foo()
14464 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
14467 #pragma omp target in foo()
14468 #pragma omp teams in foo()
14469 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
14472 #pragma omp target in foo()
14473 #pragma omp teams in foo()
14475 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
14477 #pragma omp target in foo()
14478 #pragma omp teams in foo()
14480 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
14482 #pragma omp target in foo()
14483 #pragma omp teams in foo()
14485 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams' region; perhap… in foo()
14488 #pragma omp target in foo()
14489 #pragma omp teams in foo()
14491 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'teams' region; per… in foo()
14495 #pragma omp target in foo()
14496 #pragma omp teams in foo()
14497 #pragma omp distribute in foo()
14500 #pragma omp target in foo()
14501 #pragma omp teams in foo()
14502 #pragma omp distribute in foo()
14505 #pragma omp distribute in foo()
14508 #pragma omp target in foo()
14509 #pragma omp teams in foo()
14511 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
14514 #pragma omp target in foo()
14515 #pragma omp teams in foo()
14516 #pragma omp distribute parallel for in foo()
14519 #pragma omp target in foo()
14520 #pragma omp teams in foo()
14522 #pragma omp distribute parallel for in foo()
14525 #pragma omp distribute parallel for in foo()
14529 #pragma omp target in foo()
14530 #pragma omp teams in foo()
14532 #pragma omp distribute parallel for simd in foo()
14535 #pragma omp distribute parallel for simd in foo()
14539 #pragma omp target in foo()
14540 #pragma omp teams in foo()
14542 #pragma omp distribute simd in foo()
14545 #pragma omp distribute simd in foo()
14549 #pragma omp target in foo()
14550 #pragma omp teams in foo()
14552 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
14556 #pragma omp target in foo()
14557 #pragma omp teams in foo()
14559 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams' reg… in foo()
14563 #pragma omp target in foo()
14564 #pragma omp teams in foo()
14566 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
14570 #pragma omp target in foo()
14571 #pragma omp teams in foo()
14573 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
14577 #pragma omp target in foo()
14578 #pragma omp teams in foo()
14580 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
14584 #pragma omp target in foo()
14585 #pragma omp teams in foo()
14587 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
14590 #pragma omp target in foo()
14591 #pragma omp teams in foo()
14593 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
14597 #pragma omp target in foo()
14598 #pragma omp teams in foo()
14600 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
14604 #pragma omp target in foo()
14605 #pragma omp teams in foo()
14607 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
14611 #pragma omp target in foo()
14612 #pragma omp teams in foo()
14614 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
14620 #pragma omp taskloop in foo()
14622 #pragma omp for // expected-error {{region cannot be closely nested inside 'taskloop' region; perha… in foo()
14626 #pragma omp taskloop in foo()
14628 #pragma omp simd in foo()
14632 #pragma omp taskloop in foo()
14634 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'taskloop' region; … in foo()
14638 #pragma omp taskloop in foo()
14640 #pragma omp parallel in foo()
14644 #pragma omp taskloop in foo()
14646 #pragma omp sections // expected-error {{region cannot be closely nested inside 'taskloop' region; … in foo()
14651 #pragma omp taskloop in foo()
14653 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
14658 #pragma omp taskloop in foo()
14660 #pragma omp single // expected-error {{region cannot be closely nested inside 'taskloop' region; pe… in foo()
14666 #pragma omp taskloop in foo()
14668 #pragma omp master // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
14673 #pragma omp taskloop in foo()
14675 #pragma omp critical in foo()
14680 #pragma omp taskloop in foo()
14682 #pragma omp parallel in foo()
14684 #pragma omp single // OK in foo()
14688 #pragma omp for // OK in foo()
14691 #pragma omp sections // OK in foo()
14697 #pragma omp taskloop in foo()
14699 #pragma omp parallel for in foo()
14703 #pragma omp taskloop in foo()
14705 #pragma omp parallel for simd in foo()
14709 #pragma omp taskloop in foo()
14711 #pragma omp parallel sections in foo()
14716 #pragma omp taskloop in foo()
14718 #pragma omp task in foo()
14723 #pragma omp taskloop in foo()
14725 #pragma omp taskyield in foo()
14728 #pragma omp taskloop in foo()
14730 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
14733 #pragma omp taskloop in foo()
14735 #pragma omp scan // expected-error {{region cannot be closely nested inside 'taskloop' region}} in foo()
14738 #pragma omp taskloop in foo()
14740 #pragma omp taskwait in foo()
14743 #pragma omp taskloop in foo()
14745 #pragma omp flush in foo()
14748 #pragma omp taskloop in foo()
14750 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'taskloop' region; p… in foo()
14753 #pragma omp taskloop in foo()
14755 #pragma omp atomic in foo()
14758 #pragma omp taskloop in foo()
14760 #pragma omp target in foo()
14763 #pragma omp taskloop in foo()
14765 #pragma omp target parallel in foo()
14768 #pragma omp taskloop in foo()
14770 #pragma omp target parallel for in foo()
14774 #pragma omp taskloop in foo()
14776 #pragma omp target enter data map(to: a) in foo()
14779 #pragma omp taskloop in foo()
14781 #pragma omp target exit data map(from: a) in foo()
14784 #pragma omp taskloop in foo()
14786 #pragma omp teams // expected-error {{region cannot be closely nested inside 'taskloop' region; per… in foo()
14789 #pragma omp taskloop in foo()
14791 #pragma omp taskloop in foo()
14795 #pragma omp taskloop in foo()
14797 #pragma omp target update to(a) in foo()
14800 #pragma omp taskloop in foo()
14802 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'taskloop' region… in foo()
14806 #pragma omp taskloop in foo()
14808 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'tas… in foo()
14812 #pragma omp taskloop in foo()
14814 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
14818 #pragma omp taskloop in foo()
14820 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'taskloop' r… in foo()
14824 #pragma omp taskloop in foo()
14826 #pragma omp target simd // OK in foo()
14830 #pragma omp taskloop in foo()
14832 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'taskloop' … in foo()
14836 #pragma omp taskloop in foo()
14838 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'taskl… in foo()
14842 #pragma omp taskloop in foo()
14844 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
14848 #pragma omp taskloop in foo()
14850 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
14854 #pragma omp taskloop in foo()
14856 #pragma omp target teams // OK in foo()
14859 #pragma omp taskloop in foo()
14861 #pragma omp target teams distribute // OK in foo()
14865 #pragma omp taskloop in foo()
14867 #pragma omp target teams distribute parallel for // OK in foo()
14871 #pragma omp taskloop in foo()
14873 #pragma omp target teams distribute parallel for simd // OK in foo()
14877 #pragma omp taskloop in foo()
14879 #pragma omp target teams distribute simd // OK in foo()
14885 #pragma omp target in foo()
14886 #pragma omp teams in foo()
14887 #pragma omp distribute in foo()
14889 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute' regi… in foo()
14893 #pragma omp target in foo()
14894 #pragma omp teams in foo()
14895 #pragma omp distribute in foo()
14897 #pragma omp for in foo()
14901 #pragma omp target in foo()
14902 #pragma omp teams in foo()
14903 #pragma omp distribute in foo()
14905 #pragma omp simd in foo()
14909 #pragma omp target in foo()
14910 #pragma omp teams in foo()
14911 #pragma omp distribute in foo()
14913 #pragma omp for simd in foo()
14917 #pragma omp target in foo()
14918 #pragma omp teams in foo()
14919 #pragma omp distribute in foo()
14921 #pragma omp parallel in foo()
14925 #pragma omp target in foo()
14926 #pragma omp teams in foo()
14927 #pragma omp distribute in foo()
14929 #pragma omp sections in foo()
14934 #pragma omp target in foo()
14935 #pragma omp teams in foo()
14936 #pragma omp distribute in foo()
14938 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
14943 #pragma omp target in foo()
14944 #pragma omp teams in foo()
14945 #pragma omp distribute in foo()
14947 #pragma omp single in foo()
14952 #pragma omp target in foo()
14953 #pragma omp teams in foo()
14954 #pragma omp distribute in foo()
14956 #pragma omp master in foo()
14961 #pragma omp target in foo()
14962 #pragma omp teams in foo()
14963 #pragma omp distribute in foo()
14965 #pragma omp critical in foo()
14970 #pragma omp target in foo()
14971 #pragma omp teams in foo()
14972 #pragma omp distribute in foo()
14974 #pragma omp parallel in foo()
14976 #pragma omp single in foo()
14982 #pragma omp target in foo()
14983 #pragma omp teams in foo()
14984 #pragma omp distribute in foo()
14986 #pragma omp parallel for in foo()
14990 #pragma omp target in foo()
14991 #pragma omp teams in foo()
14992 #pragma omp distribute in foo()
14994 #pragma omp parallel for simd in foo()
14998 #pragma omp target in foo()
14999 #pragma omp teams in foo()
15000 #pragma omp distribute in foo()
15002 #pragma omp parallel sections in foo()
15007 #pragma omp target in foo()
15008 #pragma omp teams in foo()
15009 #pragma omp distribute in foo()
15011 #pragma omp task in foo()
15016 #pragma omp target in foo()
15017 #pragma omp teams in foo()
15018 #pragma omp distribute in foo()
15020 #pragma omp taskyield in foo()
15023 #pragma omp target in foo()
15024 #pragma omp teams in foo()
15025 #pragma omp distribute in foo()
15027 #pragma omp barrier in foo()
15030 #pragma omp target in foo()
15031 #pragma omp teams in foo()
15032 #pragma omp distribute in foo()
15034 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute' region; pe… in foo()
15037 #pragma omp target in foo()
15038 #pragma omp teams in foo()
15039 #pragma omp distribute in foo()
15041 #pragma omp taskwait in foo()
15044 #pragma omp target in foo()
15045 #pragma omp teams in foo()
15046 #pragma omp distribute in foo()
15048 #pragma omp flush in foo()
15051 #pragma omp target in foo()
15052 #pragma omp teams in foo()
15053 #pragma omp distribute in foo()
15055 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute' region;… in foo()
15058 #pragma omp target in foo()
15059 #pragma omp teams in foo()
15060 #pragma omp distribute in foo()
15062 #pragma omp atomic in foo()
15065 #pragma omp target in foo()
15066 #pragma omp teams in foo()
15067 #pragma omp distribute in foo()
15069 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
15072 #pragma omp target in foo()
15073 #pragma omp teams in foo()
15074 #pragma omp distribute in foo()
15076 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
15079 #pragma omp target in foo()
15080 #pragma omp teams in foo()
15081 #pragma omp distribute in foo()
15083 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
15087 #pragma omp target in foo()
15088 #pragma omp teams in foo()
15089 #pragma omp distribute in foo()
15091 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute' region; p… in foo()
15094 #pragma omp target in foo()
15095 #pragma omp teams in foo()
15096 #pragma omp distribute in foo()
15098 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
15101 #pragma omp target in foo()
15102 #pragma omp teams in foo()
15103 #pragma omp distribute in foo()
15105 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
15108 #pragma omp target in foo()
15109 #pragma omp teams in foo()
15110 #pragma omp distribute in foo()
15112 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
15115 #pragma omp target in foo()
15116 #pragma omp teams in foo()
15117 #pragma omp distribute in foo()
15119 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'dis… in foo()
15123 #pragma omp target in foo()
15124 #pragma omp teams in foo()
15125 #pragma omp distribute in foo()
15127 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
15131 #pragma omp target in foo()
15132 #pragma omp teams in foo()
15133 #pragma omp distribute in foo()
15135 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'distribute'… in foo()
15139 #pragma omp target in foo()
15140 #pragma omp teams in foo()
15141 #pragma omp distribute in foo()
15143 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
15147 #pragma omp target in foo()
15148 #pragma omp teams in foo()
15149 #pragma omp distribute in foo()
15151 #pragma omp target parallel for simd // expected-error {{region cannot be nested inside 'target' re… in foo()
15155 #pragma omp target in foo()
15156 #pragma omp teams in foo()
15157 #pragma omp distribute in foo()
15159 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
15163 #pragma omp target in foo()
15164 #pragma omp teams in foo()
15165 #pragma omp distribute in foo()
15167 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
15171 #pragma omp target in foo()
15172 #pragma omp teams in foo()
15173 #pragma omp distribute in foo()
15175 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
15179 #pragma omp target in foo()
15180 #pragma omp teams in foo()
15181 #pragma omp distribute in foo()
15183 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
15187 #pragma omp target in foo()
15188 #pragma omp teams in foo()
15189 #pragma omp distribute in foo()
15191 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
15195 #pragma omp target in foo()
15196 #pragma omp teams in foo()
15197 #pragma omp distribute in foo()
15199 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
15205 #pragma omp target in foo()
15206 #pragma omp teams in foo()
15207 #pragma omp distribute parallel for in foo()
15209 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'dis… in foo()
15214 #pragma omp target in foo()
15215 #pragma omp teams in foo()
15216 #pragma omp distribute parallel for in foo()
15218 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute paral… in foo()
15222 #pragma omp target in foo()
15223 #pragma omp teams in foo()
15224 #pragma omp distribute parallel for in foo()
15226 #pragma omp for // expected-error {{region cannot be closely nested inside 'distribute parallel for… in foo()
15230 #pragma omp target in foo()
15231 #pragma omp teams in foo()
15232 #pragma omp distribute parallel for in foo()
15234 #pragma omp simd in foo()
15238 #pragma omp target in foo()
15239 #pragma omp teams in foo()
15240 #pragma omp distribute parallel for in foo()
15242 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'distribute paralle… in foo()
15246 #pragma omp target in foo()
15247 #pragma omp teams in foo()
15248 #pragma omp distribute parallel for in foo()
15250 #pragma omp parallel in foo()
15254 #pragma omp target in foo()
15255 #pragma omp teams in foo()
15256 #pragma omp distribute parallel for in foo()
15258 #pragma omp sections // expected-error {{region cannot be closely nested inside 'distribute paralle… in foo()
15263 #pragma omp target in foo()
15264 #pragma omp teams in foo()
15265 #pragma omp distribute parallel for in foo()
15267 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
15272 #pragma omp target in foo()
15273 #pragma omp teams in foo()
15274 #pragma omp distribute parallel for in foo()
15276 #pragma omp single // expected-error {{region cannot be closely nested inside 'distribute parallel … in foo()
15281 #pragma omp target in foo()
15282 #pragma omp teams in foo()
15283 #pragma omp distribute parallel for in foo()
15285 #pragma omp master // expected-error {{region cannot be closely nested inside 'distribute parallel … in foo()
15290 #pragma omp target in foo()
15291 #pragma omp teams in foo()
15292 #pragma omp distribute parallel for in foo()
15294 #pragma omp critical in foo()
15299 #pragma omp target in foo()
15300 #pragma omp teams in foo()
15301 #pragma omp distribute parallel for in foo()
15303 #pragma omp parallel in foo()
15305 #pragma omp single in foo()
15311 #pragma omp target in foo()
15312 #pragma omp teams in foo()
15313 #pragma omp distribute parallel for in foo()
15315 #pragma omp parallel for in foo()
15319 #pragma omp target in foo()
15320 #pragma omp teams in foo()
15321 #pragma omp distribute parallel for in foo()
15323 #pragma omp parallel for simd in foo()
15327 #pragma omp target in foo()
15328 #pragma omp teams in foo()
15329 #pragma omp distribute parallel for in foo()
15331 #pragma omp parallel sections in foo()
15336 #pragma omp target in foo()
15337 #pragma omp teams in foo()
15338 #pragma omp distribute parallel for in foo()
15340 #pragma omp task in foo()
15345 #pragma omp target in foo()
15346 #pragma omp teams in foo()
15347 #pragma omp distribute parallel for in foo()
15349 #pragma omp taskyield in foo()
15352 #pragma omp target in foo()
15353 #pragma omp teams in foo()
15354 #pragma omp distribute parallel for in foo()
15356 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'distribute parallel… in foo()
15359 #pragma omp target in foo()
15360 #pragma omp teams in foo()
15361 #pragma omp distribute parallel for in foo()
15363 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute parallel fo… in foo()
15366 #pragma omp target in foo()
15367 #pragma omp teams in foo()
15368 #pragma omp distribute parallel for in foo()
15370 #pragma omp taskwait in foo()
15373 #pragma omp target in foo()
15374 #pragma omp teams in foo()
15375 #pragma omp distribute parallel for in foo()
15377 #pragma omp flush in foo()
15380 #pragma omp target in foo()
15381 #pragma omp teams in foo()
15382 #pragma omp distribute parallel for in foo()
15384 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute parallel… in foo()
15387 #pragma omp target in foo()
15388 #pragma omp teams in foo()
15389 #pragma omp distribute parallel for in foo()
15391 #pragma omp atomic in foo()
15394 #pragma omp target in foo()
15395 #pragma omp teams in foo()
15396 #pragma omp distribute parallel for in foo()
15398 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
15401 #pragma omp target in foo()
15402 #pragma omp teams in foo()
15403 #pragma omp distribute parallel for in foo()
15405 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
15408 #pragma omp target in foo()
15409 #pragma omp teams in foo()
15410 #pragma omp distribute parallel for in foo()
15412 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
15416 #pragma omp target in foo()
15417 #pragma omp teams in foo()
15418 #pragma omp distribute parallel for in foo()
15420 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute parallel f… in foo()
15423 #pragma omp target in foo()
15424 #pragma omp teams in foo()
15425 #pragma omp distribute parallel for in foo()
15427 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
15430 #pragma omp target in foo()
15431 #pragma omp teams in foo()
15432 #pragma omp distribute parallel for in foo()
15434 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
15437 #pragma omp target in foo()
15438 #pragma omp teams in foo()
15439 #pragma omp distribute parallel for in foo()
15441 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
15444 #pragma omp target in foo()
15445 #pragma omp teams in foo()
15446 #pragma omp distribute parallel for in foo()
15448 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'distribute … in foo()
15452 #pragma omp target in foo()
15453 #pragma omp teams in foo()
15454 #pragma omp distribute parallel for in foo()
15456 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
15460 #pragma omp target in foo()
15461 #pragma omp teams in foo()
15462 #pragma omp distribute parallel for in foo()
15464 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'distribute… in foo()
15468 #pragma omp target in foo()
15469 #pragma omp teams in foo()
15470 #pragma omp distribute parallel for in foo()
15472 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'distr… in foo()
15476 #pragma omp target in foo()
15477 #pragma omp teams in foo()
15478 #pragma omp distribute parallel for in foo()
15480 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
15484 #pragma omp target in foo()
15485 #pragma omp teams in foo()
15486 #pragma omp distribute parallel for in foo()
15488 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
15492 #pragma omp target in foo()
15493 #pragma omp teams in foo()
15494 #pragma omp distribute parallel for in foo()
15496 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
15499 #pragma omp target in foo()
15500 #pragma omp teams in foo()
15501 #pragma omp distribute parallel for in foo()
15503 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
15507 #pragma omp target in foo()
15508 #pragma omp teams in foo()
15509 #pragma omp distribute parallel for in foo()
15511 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
15515 #pragma omp target in foo()
15516 #pragma omp teams in foo()
15517 #pragma omp distribute parallel for in foo()
15519 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
15523 #pragma omp target in foo()
15524 #pragma omp teams in foo()
15525 #pragma omp distribute parallel for in foo()
15527 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
15533 #pragma omp target in foo()
15534 #pragma omp teams in foo()
15535 #pragma omp distribute parallel for simd in foo()
15537 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
15541 #pragma omp target in foo()
15542 #pragma omp teams in foo()
15543 #pragma omp distribute parallel for simd in foo()
15545 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
15549 #pragma omp target in foo()
15550 #pragma omp teams in foo()
15551 #pragma omp distribute parallel for simd in foo()
15553 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15557 #pragma omp target in foo()
15558 #pragma omp teams in foo()
15559 #pragma omp distribute parallel for simd in foo()
15561 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
15565 #pragma omp target in foo()
15566 #pragma omp teams in foo()
15567 #pragma omp distribute parallel for simd in foo()
15569 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15573 #pragma omp target in foo()
15574 #pragma omp teams in foo()
15575 #pragma omp distribute parallel for simd in foo()
15577 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15581 #pragma omp target in foo()
15582 #pragma omp teams in foo()
15583 #pragma omp distribute parallel for simd in foo()
15585 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15590 #pragma omp target in foo()
15591 #pragma omp teams in foo()
15592 #pragma omp distribute parallel for simd in foo()
15594 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15599 #pragma omp target in foo()
15600 #pragma omp teams in foo()
15601 #pragma omp distribute parallel for simd in foo()
15603 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15608 #pragma omp target in foo()
15609 #pragma omp teams in foo()
15610 #pragma omp distribute parallel for simd in foo()
15612 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15617 #pragma omp target in foo()
15618 #pragma omp teams in foo()
15619 #pragma omp distribute parallel for simd in foo()
15621 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15626 #pragma omp target in foo()
15627 #pragma omp teams in foo()
15628 #pragma omp distribute parallel for simd in foo()
15630 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15632 #pragma omp single in foo()
15638 #pragma omp target in foo()
15639 #pragma omp teams in foo()
15640 #pragma omp distribute parallel for simd in foo()
15642 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
15646 #pragma omp target in foo()
15647 #pragma omp teams in foo()
15648 #pragma omp distribute parallel for simd in foo()
15650 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
15654 #pragma omp target in foo()
15655 #pragma omp teams in foo()
15656 #pragma omp distribute parallel for simd in foo()
15658 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
15663 #pragma omp target in foo()
15664 #pragma omp teams in foo()
15665 #pragma omp distribute parallel for simd in foo()
15667 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15672 #pragma omp target in foo()
15673 #pragma omp teams in foo()
15674 #pragma omp distribute parallel for simd in foo()
15676 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15679 #pragma omp target in foo()
15680 #pragma omp teams in foo()
15681 #pragma omp distribute parallel for simd in foo()
15683 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15686 #pragma omp target in foo()
15687 #pragma omp teams in foo()
15688 #pragma omp distribute parallel for simd in foo()
15690 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
15693 #pragma omp target in foo()
15694 #pragma omp teams in foo()
15695 #pragma omp distribute parallel for simd in foo()
15697 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15700 #pragma omp target in foo()
15701 #pragma omp teams in foo()
15702 #pragma omp distribute parallel for simd in foo()
15704 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15707 #pragma omp target in foo()
15708 #pragma omp teams in foo()
15709 #pragma omp distribute parallel for simd in foo()
15711 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15714 #pragma omp target in foo()
15715 #pragma omp teams in foo()
15716 #pragma omp distribute parallel for simd in foo()
15718 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15721 #pragma omp target in foo()
15722 #pragma omp teams in foo()
15723 #pragma omp distribute parallel for simd in foo()
15725 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15728 #pragma omp target in foo()
15729 #pragma omp teams in foo()
15730 #pragma omp distribute parallel for simd in foo()
15732 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
15735 #pragma omp target in foo()
15736 #pragma omp teams in foo()
15737 #pragma omp distribute parallel for simd in foo()
15739 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15742 #pragma omp target in foo()
15743 #pragma omp teams in foo()
15744 #pragma omp distribute parallel for simd in foo()
15746 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
15749 #pragma omp target in foo()
15750 #pragma omp teams in foo()
15751 #pragma omp distribute parallel for simd in foo()
15753 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
15756 #pragma omp target in foo()
15757 #pragma omp teams in foo()
15758 #pragma omp distribute parallel for simd in foo()
15760 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
15763 #pragma omp target in foo()
15764 #pragma omp teams in foo()
15765 #pragma omp distribute parallel for simd in foo()
15767 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
15771 #pragma omp target in foo()
15772 #pragma omp teams in foo()
15773 #pragma omp distribute parallel for simd in foo()
15775 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
15779 #pragma omp target in foo()
15780 #pragma omp teams in foo()
15781 #pragma omp distribute parallel for simd in foo()
15783 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
15787 #pragma omp target in foo()
15788 #pragma omp teams in foo()
15789 #pragma omp distribute parallel for simd in foo()
15791 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
15795 #pragma omp target in foo()
15796 #pragma omp teams in foo()
15797 #pragma omp distribute parallel for simd in foo()
15799 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
15803 #pragma omp target in foo()
15804 #pragma omp teams in foo()
15805 #pragma omp distribute parallel for simd in foo()
15807 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
15811 #pragma omp target in foo()
15812 #pragma omp teams in foo()
15813 #pragma omp distribute parallel for simd in foo()
15815 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
15818 #pragma omp target in foo()
15819 #pragma omp teams in foo()
15820 #pragma omp distribute parallel for simd in foo()
15822 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
15826 #pragma omp target in foo()
15827 #pragma omp teams in foo()
15828 #pragma omp distribute parallel for simd in foo()
15830 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
15834 #pragma omp target in foo()
15835 #pragma omp teams in foo()
15836 #pragma omp distribute parallel for simd in foo()
15838 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
15842 #pragma omp target in foo()
15843 #pragma omp teams in foo()
15844 #pragma omp distribute parallel for simd in foo()
15846 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
15852 #pragma omp target in foo()
15853 #pragma omp teams in foo()
15854 #pragma omp distribute simd in foo()
15856 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
15860 #pragma omp target in foo()
15861 #pragma omp teams in foo()
15862 #pragma omp distribute simd in foo()
15864 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
15868 #pragma omp target in foo()
15869 #pragma omp teams in foo()
15870 #pragma omp distribute simd in foo()
15872 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15876 #pragma omp target in foo()
15877 #pragma omp teams in foo()
15878 #pragma omp distribute simd in foo()
15880 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
15884 #pragma omp target in foo()
15885 #pragma omp teams in foo()
15886 #pragma omp distribute simd in foo()
15888 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15892 #pragma omp target in foo()
15893 #pragma omp teams in foo()
15894 #pragma omp distribute simd in foo()
15896 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15900 #pragma omp target in foo()
15901 #pragma omp teams in foo()
15902 #pragma omp distribute simd in foo()
15904 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15909 #pragma omp target in foo()
15910 #pragma omp teams in foo()
15911 #pragma omp distribute simd in foo()
15913 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15918 #pragma omp target in foo()
15919 #pragma omp teams in foo()
15920 #pragma omp distribute simd in foo()
15922 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15927 #pragma omp target in foo()
15928 #pragma omp teams in foo()
15929 #pragma omp distribute simd in foo()
15931 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15936 #pragma omp target in foo()
15937 #pragma omp teams in foo()
15938 #pragma omp distribute simd in foo()
15940 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15945 #pragma omp target in foo()
15946 #pragma omp teams in foo()
15947 #pragma omp distribute simd in foo()
15949 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15951 #pragma omp single in foo()
15957 #pragma omp target in foo()
15958 #pragma omp teams in foo()
15959 #pragma omp distribute simd in foo()
15961 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
15965 #pragma omp target in foo()
15966 #pragma omp teams in foo()
15967 #pragma omp distribute simd in foo()
15969 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
15973 #pragma omp target in foo()
15974 #pragma omp teams in foo()
15975 #pragma omp distribute simd in foo()
15977 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
15982 #pragma omp target in foo()
15983 #pragma omp teams in foo()
15984 #pragma omp distribute simd in foo()
15986 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15991 #pragma omp target in foo()
15992 #pragma omp teams in foo()
15993 #pragma omp distribute simd in foo()
15995 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
15998 #pragma omp target in foo()
15999 #pragma omp teams in foo()
16000 #pragma omp distribute simd in foo()
16002 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16005 #pragma omp target in foo()
16006 #pragma omp teams in foo()
16007 #pragma omp distribute simd in foo()
16009 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
16012 #pragma omp target in foo()
16013 #pragma omp teams in foo()
16014 #pragma omp distribute simd in foo()
16016 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16019 #pragma omp target in foo()
16020 #pragma omp teams in foo()
16021 #pragma omp distribute simd in foo()
16023 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16026 #pragma omp target in foo()
16027 #pragma omp teams in foo()
16028 #pragma omp distribute simd in foo()
16030 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16033 #pragma omp target in foo()
16034 #pragma omp teams in foo()
16035 #pragma omp distribute simd in foo()
16037 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16040 #pragma omp target in foo()
16041 #pragma omp teams in foo()
16042 #pragma omp distribute simd in foo()
16044 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16047 #pragma omp target in foo()
16048 #pragma omp teams in foo()
16049 #pragma omp distribute simd in foo()
16051 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
16054 #pragma omp target in foo()
16055 #pragma omp teams in foo()
16056 #pragma omp distribute simd in foo()
16058 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16061 #pragma omp target in foo()
16062 #pragma omp teams in foo()
16063 #pragma omp distribute simd in foo()
16065 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
16068 #pragma omp target in foo()
16069 #pragma omp teams in foo()
16070 #pragma omp distribute simd in foo()
16072 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
16075 #pragma omp target in foo()
16076 #pragma omp teams in foo()
16077 #pragma omp distribute simd in foo()
16079 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
16082 #pragma omp target in foo()
16083 #pragma omp teams in foo()
16084 #pragma omp distribute simd in foo()
16086 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
16090 #pragma omp target in foo()
16091 #pragma omp teams in foo()
16092 #pragma omp distribute simd in foo()
16094 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
16098 #pragma omp target in foo()
16099 #pragma omp teams in foo()
16100 #pragma omp distribute simd in foo()
16102 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
16106 #pragma omp target in foo()
16107 #pragma omp teams in foo()
16108 #pragma omp distribute simd in foo()
16110 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
16114 #pragma omp target in foo()
16115 #pragma omp teams in foo()
16116 #pragma omp distribute simd in foo()
16118 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
16122 #pragma omp target in foo()
16123 #pragma omp teams in foo()
16124 #pragma omp distribute simd in foo()
16126 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
16130 #pragma omp target in foo()
16131 #pragma omp teams in foo()
16132 #pragma omp distribute simd in foo()
16134 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
16137 #pragma omp target in foo()
16138 #pragma omp teams in foo()
16139 #pragma omp distribute simd in foo()
16141 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
16145 #pragma omp target in foo()
16146 #pragma omp teams in foo()
16147 #pragma omp distribute simd in foo()
16149 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
16153 #pragma omp target in foo()
16154 #pragma omp teams in foo()
16155 #pragma omp distribute simd in foo()
16157 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
16161 #pragma omp target in foo()
16162 #pragma omp teams in foo()
16163 #pragma omp distribute simd in foo()
16165 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
16171 #pragma omp target simd in foo()
16173 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
16177 #pragma omp target simd in foo()
16179 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
16183 #pragma omp target simd in foo()
16185 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16189 #pragma omp target simd in foo()
16191 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
16195 #pragma omp target simd in foo()
16197 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16201 #pragma omp target simd in foo()
16203 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16207 #pragma omp target simd in foo()
16209 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16214 #pragma omp target simd in foo()
16216 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16221 #pragma omp target simd in foo()
16223 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16228 #pragma omp target simd in foo()
16230 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16235 #pragma omp target simd in foo()
16237 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16242 #pragma omp target simd in foo()
16244 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16246 #pragma omp single in foo()
16252 #pragma omp target simd in foo()
16254 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
16258 #pragma omp target simd in foo()
16260 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
16264 #pragma omp target simd in foo()
16266 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
16271 #pragma omp target simd in foo()
16273 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16278 #pragma omp target simd in foo()
16280 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16283 #pragma omp target simd in foo()
16285 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16288 #pragma omp target simd in foo()
16290 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
16293 #pragma omp target simd in foo()
16295 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16298 #pragma omp target simd in foo()
16300 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16303 #pragma omp target simd in foo()
16305 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16308 #pragma omp target simd in foo()
16310 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16313 #pragma omp target simd in foo()
16315 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16318 #pragma omp target simd in foo()
16320 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
16323 #pragma omp target simd in foo()
16325 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16328 #pragma omp target simd in foo()
16330 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
16333 #pragma omp target simd in foo()
16335 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
16338 #pragma omp target simd in foo()
16340 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
16343 #pragma omp target simd in foo()
16345 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
16349 #pragma omp target simd in foo()
16351 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
16355 #pragma omp target simd in foo()
16357 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
16361 #pragma omp target simd in foo()
16363 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
16367 #pragma omp target simd in foo()
16369 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
16373 #pragma omp target simd in foo()
16375 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
16379 #pragma omp target simd in foo()
16381 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
16384 #pragma omp target simd in foo()
16386 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
16390 #pragma omp target simd in foo()
16392 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
16396 #pragma omp target simd in foo()
16398 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
16402 #pragma omp target simd in foo()
16404 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
16410 #pragma omp teams distribute // omp45-error {{orphaned 'omp teams distribute' directives are prohib… in foo()
16413 #pragma omp target in foo()
16414 #pragma omp teams distribute in foo()
16416 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
16420 #pragma omp target in foo()
16421 #pragma omp teams distribute in foo()
16423 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute… in foo()
16427 #pragma omp target in foo()
16428 #pragma omp teams distribute in foo()
16430 #pragma omp for // OK in foo()
16434 #pragma omp target in foo()
16435 #pragma omp teams distribute in foo()
16437 #pragma omp simd // OK in foo()
16441 #pragma omp target in foo()
16442 #pragma omp teams distribute in foo()
16444 #pragma omp for simd // OK in foo()
16448 #pragma omp target in foo()
16449 #pragma omp teams distribute in foo()
16451 #pragma omp parallel // OK in foo()
16455 #pragma omp target in foo()
16456 #pragma omp teams distribute in foo()
16458 #pragma omp sections // OK in foo()
16463 #pragma omp target in foo()
16464 #pragma omp teams distribute in foo()
16466 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
16471 #pragma omp target in foo()
16472 #pragma omp teams distribute in foo()
16474 #pragma omp single // OK in foo()
16479 #pragma omp target in foo()
16480 #pragma omp teams distribute in foo()
16482 #pragma omp master // OK in foo()
16487 #pragma omp target in foo()
16488 #pragma omp teams distribute in foo()
16490 #pragma omp critical // OK in foo()
16495 #pragma omp target in foo()
16496 #pragma omp teams distribute in foo()
16498 #pragma omp parallel // OK in foo()
16500 #pragma omp single in foo()
16506 #pragma omp target in foo()
16507 #pragma omp teams distribute in foo()
16509 #pragma omp parallel for // OK in foo()
16513 #pragma omp target in foo()
16514 #pragma omp teams distribute in foo()
16516 #pragma omp parallel for simd // OK in foo()
16520 #pragma omp target in foo()
16521 #pragma omp teams distribute in foo()
16523 #pragma omp parallel sections // OK in foo()
16528 #pragma omp target in foo()
16529 #pragma omp teams distribute in foo()
16531 #pragma omp task // OK in foo()
16536 #pragma omp target in foo()
16537 #pragma omp teams distribute in foo()
16539 #pragma omp taskyield // OK in foo()
16542 #pragma omp target in foo()
16543 #pragma omp teams distribute in foo()
16545 #pragma omp barrier // OK in foo()
16548 #pragma omp target in foo()
16549 #pragma omp teams distribute in foo()
16551 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute' regi… in foo()
16554 #pragma omp target in foo()
16555 #pragma omp teams distribute in foo()
16557 #pragma omp taskwait // OK in foo()
16560 #pragma omp target in foo()
16561 #pragma omp teams distribute in foo()
16563 #pragma omp flush // OK in foo()
16566 #pragma omp target in foo()
16567 #pragma omp teams distribute in foo()
16569 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute' r… in foo()
16572 #pragma omp target in foo()
16573 #pragma omp teams distribute in foo()
16575 #pragma omp atomic // OK in foo()
16578 #pragma omp target in foo()
16579 #pragma omp teams distribute in foo()
16581 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
16584 #pragma omp target in foo()
16585 #pragma omp teams distribute in foo()
16587 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
16590 #pragma omp target in foo()
16591 #pragma omp teams distribute in foo()
16593 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
16597 #pragma omp target in foo()
16598 #pragma omp teams distribute in foo()
16600 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
16603 #pragma omp target in foo()
16604 #pragma omp teams distribute in foo()
16606 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
16609 #pragma omp target in foo()
16610 #pragma omp teams distribute in foo()
16612 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute' reg… in foo()
16615 #pragma omp target in foo()
16616 #pragma omp teams distribute in foo()
16618 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
16621 #pragma omp target in foo()
16622 #pragma omp teams distribute in foo()
16624 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distr… in foo()
16628 #pragma omp target in foo()
16629 #pragma omp teams distribute in foo()
16631 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
16635 #pragma omp target in foo()
16636 #pragma omp teams distribute in foo()
16638 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams dist… in foo()
16642 #pragma omp target in foo()
16643 #pragma omp teams distribute in foo()
16645 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
16649 #pragma omp target in foo()
16650 #pragma omp teams distribute in foo()
16652 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
16656 #pragma omp target in foo()
16657 #pragma omp teams distribute in foo()
16659 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
16663 #pragma omp target in foo()
16664 #pragma omp teams distribute in foo()
16666 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
16669 #pragma omp target in foo()
16670 #pragma omp teams distribute in foo()
16672 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
16676 #pragma omp target in foo()
16677 #pragma omp teams distribute in foo()
16679 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
16683 #pragma omp target in foo()
16684 #pragma omp teams distribute in foo()
16686 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
16690 #pragma omp target in foo()
16691 #pragma omp teams distribute in foo()
16693 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
16699 #pragma omp teams distribute simd // omp45-error {{orphaned 'omp teams distribute simd' directives … in foo()
16702 #pragma omp target in foo()
16703 #pragma omp teams distribute simd in foo()
16705 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
16709 #pragma omp target in foo()
16710 #pragma omp teams distribute simd in foo()
16712 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
16716 #pragma omp target in foo()
16717 #pragma omp teams distribute simd in foo()
16719 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16723 #pragma omp target in foo()
16724 #pragma omp teams distribute simd in foo()
16726 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
16730 #pragma omp target in foo()
16731 #pragma omp teams distribute simd in foo()
16733 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16737 #pragma omp target in foo()
16738 #pragma omp teams distribute simd in foo()
16740 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16744 #pragma omp target in foo()
16745 #pragma omp teams distribute simd in foo()
16747 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16752 #pragma omp target in foo()
16753 #pragma omp teams distribute simd in foo()
16755 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16760 #pragma omp target in foo()
16761 #pragma omp teams distribute simd in foo()
16763 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16768 #pragma omp target in foo()
16769 #pragma omp teams distribute simd in foo()
16771 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16776 #pragma omp target in foo()
16777 #pragma omp teams distribute simd in foo()
16779 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16784 #pragma omp target in foo()
16785 #pragma omp teams distribute simd in foo()
16787 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16789 #pragma omp single in foo()
16795 #pragma omp target in foo()
16796 #pragma omp teams distribute simd in foo()
16798 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
16802 #pragma omp target in foo()
16803 #pragma omp teams distribute simd in foo()
16805 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
16809 #pragma omp target in foo()
16810 #pragma omp teams distribute simd in foo()
16812 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
16817 #pragma omp target in foo()
16818 #pragma omp teams distribute simd in foo()
16820 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16825 #pragma omp target in foo()
16826 #pragma omp teams distribute simd in foo()
16828 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16831 #pragma omp target in foo()
16832 #pragma omp teams distribute simd in foo()
16834 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16837 #pragma omp target in foo()
16838 #pragma omp teams distribute simd in foo()
16840 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
16843 #pragma omp target in foo()
16844 #pragma omp teams distribute simd in foo()
16846 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16849 #pragma omp target in foo()
16850 #pragma omp teams distribute simd in foo()
16852 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16855 #pragma omp target in foo()
16856 #pragma omp teams distribute simd in foo()
16858 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16861 #pragma omp target in foo()
16862 #pragma omp teams distribute simd in foo()
16864 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16867 #pragma omp target in foo()
16868 #pragma omp teams distribute simd in foo()
16870 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16873 #pragma omp target in foo()
16874 #pragma omp teams distribute simd in foo()
16876 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
16879 #pragma omp target in foo()
16880 #pragma omp teams distribute simd in foo()
16882 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
16886 #pragma omp target in foo()
16887 #pragma omp teams distribute simd in foo()
16889 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
16892 #pragma omp target in foo()
16893 #pragma omp teams distribute simd in foo()
16895 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
16898 #pragma omp target in foo()
16899 #pragma omp teams distribute simd in foo()
16901 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
16904 #pragma omp target in foo()
16905 #pragma omp teams distribute simd in foo()
16907 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
16910 #pragma omp target in foo()
16911 #pragma omp teams distribute simd in foo()
16913 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
16917 #pragma omp target in foo()
16918 #pragma omp teams distribute simd in foo()
16920 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
16924 #pragma omp target in foo()
16925 #pragma omp teams distribute simd in foo()
16927 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
16931 #pragma omp target in foo()
16932 #pragma omp teams distribute simd in foo()
16934 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
16938 #pragma omp target in foo()
16939 #pragma omp teams distribute simd in foo()
16941 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
16945 #pragma omp target in foo()
16946 #pragma omp teams distribute simd in foo()
16948 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
16952 #pragma omp target in foo()
16953 #pragma omp teams distribute simd in foo()
16955 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
16958 #pragma omp target in foo()
16959 #pragma omp teams distribute simd in foo()
16961 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
16965 #pragma omp target in foo()
16966 #pragma omp teams distribute simd in foo()
16968 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
16972 #pragma omp target in foo()
16973 #pragma omp teams distribute simd in foo()
16975 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
16979 #pragma omp target in foo()
16980 #pragma omp teams distribute simd in foo()
16982 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
16988 #pragma omp teams distribute parallel for simd // omp45-error {{orphaned 'omp teams distribute para… in foo()
16991 #pragma omp target in foo()
16992 #pragma omp teams distribute parallel for simd in foo()
16994 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
16998 #pragma omp target in foo()
16999 #pragma omp teams distribute parallel for simd in foo()
17001 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
17005 #pragma omp target in foo()
17006 #pragma omp teams distribute parallel for simd in foo()
17008 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17012 #pragma omp target in foo()
17013 #pragma omp teams distribute parallel for simd in foo()
17015 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
17019 #pragma omp target in foo()
17020 #pragma omp teams distribute parallel for simd in foo()
17022 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17026 #pragma omp target in foo()
17027 #pragma omp teams distribute parallel for simd in foo()
17029 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17033 #pragma omp target in foo()
17034 #pragma omp teams distribute parallel for simd in foo()
17036 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17041 #pragma omp target in foo()
17042 #pragma omp teams distribute parallel for simd in foo()
17044 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17049 #pragma omp target in foo()
17050 #pragma omp teams distribute parallel for simd in foo()
17052 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17057 #pragma omp target in foo()
17058 #pragma omp teams distribute parallel for simd in foo()
17060 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17065 #pragma omp target in foo()
17066 #pragma omp teams distribute parallel for simd in foo()
17068 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17073 #pragma omp target in foo()
17074 #pragma omp teams distribute parallel for simd in foo()
17076 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17078 #pragma omp single in foo()
17084 #pragma omp target in foo()
17085 #pragma omp teams distribute parallel for simd in foo()
17087 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
17091 #pragma omp target in foo()
17092 #pragma omp teams distribute parallel for simd in foo()
17094 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
17098 #pragma omp target in foo()
17099 #pragma omp teams distribute parallel for simd in foo()
17101 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
17106 #pragma omp target in foo()
17107 #pragma omp teams distribute parallel for simd in foo()
17109 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17114 #pragma omp target in foo()
17115 #pragma omp teams distribute parallel for simd in foo()
17117 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17120 #pragma omp target in foo()
17121 #pragma omp teams distribute parallel for simd in foo()
17123 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17126 #pragma omp target in foo()
17127 #pragma omp teams distribute parallel for simd in foo()
17129 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
17132 #pragma omp target in foo()
17133 #pragma omp teams distribute parallel for simd in foo()
17135 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17138 #pragma omp target in foo()
17139 #pragma omp teams distribute parallel for simd in foo()
17141 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17144 #pragma omp target in foo()
17145 #pragma omp teams distribute parallel for simd in foo()
17147 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17150 #pragma omp target in foo()
17151 #pragma omp teams distribute parallel for simd in foo()
17153 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17156 #pragma omp target in foo()
17157 #pragma omp teams distribute parallel for simd in foo()
17159 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17162 #pragma omp target in foo()
17163 #pragma omp teams distribute parallel for simd in foo()
17165 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
17168 #pragma omp target in foo()
17169 #pragma omp teams distribute parallel for simd in foo()
17171 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
17175 #pragma omp target in foo()
17176 #pragma omp teams distribute parallel for simd in foo()
17178 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
17181 #pragma omp target in foo()
17182 #pragma omp teams distribute parallel for simd in foo()
17184 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
17187 #pragma omp target in foo()
17188 #pragma omp teams distribute parallel for simd in foo()
17190 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
17193 #pragma omp target in foo()
17194 #pragma omp teams distribute parallel for simd in foo()
17196 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
17199 #pragma omp target in foo()
17200 #pragma omp teams distribute parallel for simd in foo()
17202 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
17206 #pragma omp target in foo()
17207 #pragma omp teams distribute parallel for simd in foo()
17209 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
17213 #pragma omp target in foo()
17214 #pragma omp teams distribute parallel for simd in foo()
17216 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
17220 #pragma omp target in foo()
17221 #pragma omp teams distribute parallel for simd in foo()
17223 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
17227 #pragma omp target in foo()
17228 #pragma omp teams distribute parallel for simd in foo()
17230 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
17234 #pragma omp target in foo()
17235 #pragma omp teams distribute parallel for simd in foo()
17237 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
17241 #pragma omp target in foo()
17242 #pragma omp teams distribute parallel for simd in foo()
17244 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
17247 #pragma omp target in foo()
17248 #pragma omp teams distribute parallel for simd in foo()
17250 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
17254 #pragma omp target in foo()
17255 #pragma omp teams distribute parallel for simd in foo()
17257 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
17261 #pragma omp target in foo()
17262 #pragma omp teams distribute parallel for simd in foo()
17264 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
17268 #pragma omp target in foo()
17269 #pragma omp teams distribute parallel for simd in foo()
17271 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
17277 #pragma omp teams distribute parallel for // omp45-error {{orphaned 'omp teams distribute parallel … in foo()
17280 #pragma omp target in foo()
17281 #pragma omp teams distribute parallel for in foo()
17283 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
17287 #pragma omp target in foo()
17288 #pragma omp teams distribute parallel for in foo()
17290 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute… in foo()
17294 #pragma omp target in foo()
17295 #pragma omp teams distribute parallel for in foo()
17297 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams distribute parall… in foo()
17301 #pragma omp target in foo()
17302 #pragma omp teams distribute parallel for in foo()
17304 #pragma omp simd // OK in foo()
17308 #pragma omp target in foo()
17309 #pragma omp teams distribute parallel for in foo()
17311 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams distribute p… in foo()
17315 #pragma omp target in foo()
17316 #pragma omp teams distribute parallel for in foo()
17318 #pragma omp parallel // OK in foo()
17322 #pragma omp target in foo()
17323 #pragma omp teams distribute parallel for in foo()
17325 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams distribute p… in foo()
17330 #pragma omp target in foo()
17331 #pragma omp teams distribute parallel for in foo()
17333 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
17338 #pragma omp target in foo()
17339 #pragma omp teams distribute parallel for in foo()
17341 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams distribute par… in foo()
17346 #pragma omp target in foo()
17347 #pragma omp teams distribute parallel for in foo()
17349 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams distribute par… in foo()
17354 #pragma omp target in foo()
17355 #pragma omp teams distribute parallel for in foo()
17357 #pragma omp critical // OK in foo()
17362 #pragma omp target in foo()
17363 #pragma omp teams distribute parallel for in foo()
17365 #pragma omp parallel // OK in foo()
17367 #pragma omp single in foo()
17373 #pragma omp target in foo()
17374 #pragma omp teams distribute parallel for in foo()
17376 #pragma omp parallel for // OK in foo()
17380 #pragma omp target in foo()
17381 #pragma omp teams distribute parallel for in foo()
17383 #pragma omp parallel for simd // OK in foo()
17387 #pragma omp target in foo()
17388 #pragma omp teams distribute parallel for in foo()
17390 #pragma omp parallel sections // OK in foo()
17395 #pragma omp target in foo()
17396 #pragma omp teams distribute parallel for in foo()
17398 #pragma omp task // OK in foo()
17403 #pragma omp target in foo()
17404 #pragma omp teams distribute parallel for in foo()
17406 #pragma omp taskyield // OK in foo()
17409 #pragma omp target in foo()
17410 #pragma omp teams distribute parallel for in foo()
17412 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams distribute pa… in foo()
17415 #pragma omp target in foo()
17416 #pragma omp teams distribute parallel for in foo()
17418 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute paral… in foo()
17421 #pragma omp target in foo()
17422 #pragma omp teams distribute parallel for in foo()
17424 #pragma omp taskwait // OK in foo()
17427 #pragma omp target in foo()
17428 #pragma omp teams distribute parallel for in foo()
17430 #pragma omp flush // OK in foo()
17433 #pragma omp target in foo()
17434 #pragma omp teams distribute parallel for in foo()
17436 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute pa… in foo()
17439 #pragma omp target in foo()
17440 #pragma omp teams distribute parallel for in foo()
17442 #pragma omp atomic // OK in foo()
17445 #pragma omp target in foo()
17446 #pragma omp teams distribute parallel for in foo()
17448 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}} in foo()
17451 #pragma omp target in foo()
17452 #pragma omp teams distribute parallel for in foo()
17454 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}} in foo()
17457 #pragma omp target in foo()
17458 #pragma omp teams distribute parallel for in foo()
17460 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}} in foo()
17464 #pragma omp target in foo()
17465 #pragma omp teams distribute parallel for in foo()
17467 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
17470 #pragma omp target in foo()
17471 #pragma omp teams distribute parallel for in foo()
17473 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
17476 #pragma omp target in foo()
17477 #pragma omp teams distribute parallel for in foo()
17479 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute para… in foo()
17482 #pragma omp target in foo()
17483 #pragma omp teams distribute parallel for in foo()
17485 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}} in foo()
17488 #pragma omp target in foo()
17489 #pragma omp teams distribute parallel for in foo()
17491 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distr… in foo()
17495 #pragma omp target in foo()
17496 #pragma omp teams distribute parallel for in foo()
17498 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}} in foo()
17502 #pragma omp target in foo()
17503 #pragma omp teams distribute parallel for in foo()
17505 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams dist… in foo()
17509 #pragma omp target in foo()
17510 #pragma omp teams distribute parallel for in foo()
17512 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams… in foo()
17516 #pragma omp target in foo()
17517 #pragma omp teams distribute parallel for in foo()
17519 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
17523 #pragma omp target in foo()
17524 #pragma omp teams distribute parallel for in foo()
17526 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
17530 #pragma omp target in foo()
17531 #pragma omp teams distribute parallel for in foo()
17533 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}} in foo()
17536 #pragma omp target in foo()
17537 #pragma omp teams distribute parallel for in foo()
17539 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' reg… in foo()
17543 #pragma omp target in foo()
17544 #pragma omp teams distribute parallel for in foo()
17546 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
17550 #pragma omp target in foo()
17551 #pragma omp teams distribute parallel for in foo()
17553 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
17557 #pragma omp target in foo()
17558 #pragma omp teams distribute parallel for in foo()
17560 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
17566 #pragma omp target teams in foo()
17567 #pragma omp parallel in foo()
17569 #pragma omp target teams in foo()
17570 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams' region; p… in foo()
17573 #pragma omp target teams in foo()
17574 #pragma omp simd // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
17577 #pragma omp target teams in foo()
17578 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
17581 #pragma omp target teams in foo()
17582 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
17586 #pragma omp target teams in foo()
17587 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
17591 #pragma omp target teams in foo()
17592 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams' region… in foo()
17595 #pragma omp target teams in foo()
17596 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams' region… in foo()
17600 #pragma omp target teams in foo()
17601 #pragma omp critical // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
17605 #pragma omp target teams in foo()
17606 #pragma omp parallel for in foo()
17609 #pragma omp target teams in foo()
17610 #pragma omp parallel for simd in foo()
17613 #pragma omp target teams in foo()
17614 #pragma omp parallel sections in foo()
17618 #pragma omp target teams in foo()
17619 #pragma omp task // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
17623 #pragma omp target teams in foo()
17625 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'target teams' reg… in foo()
17628 #pragma omp target teams in foo()
17630 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams' regio… in foo()
17633 #pragma omp target teams in foo()
17635 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams' region; … in foo()
17638 #pragma omp target teams in foo()
17640 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
17643 #pragma omp target teams in foo()
17645 #pragma omp flush // expected-error {{region cannot be closely nested inside 'target teams' region;… in foo()
17648 #pragma omp target teams in foo()
17650 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams' regio… in foo()
17653 #pragma omp target teams in foo()
17655 #pragma omp atomic // omp-error {{region cannot be closely nested inside 'target teams' region; per… in foo()
17658 #pragma omp target teams in foo()
17660 #pragma omp target // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
17663 #pragma omp target teams in foo()
17665 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams' regio… in foo()
17668 #pragma omp target teams in foo()
17669 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams' r… in foo()
17672 #pragma omp target teams in foo()
17674 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
17676 #pragma omp target teams in foo()
17678 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
17680 #pragma omp target teams in foo()
17682 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams' region;… in foo()
17685 #pragma omp target teams in foo()
17687 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'target teams' regi… in foo()
17691 #pragma omp target teams in foo()
17692 #pragma omp distribute in foo()
17695 #pragma omp target teams in foo()
17697 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams' r… in foo()
17700 #pragma omp target teams in foo()
17701 #pragma omp distribute parallel for in foo()
17704 #pragma omp target teams in foo()
17706 #pragma omp distribute parallel for in foo()
17709 #pragma omp distribute parallel for in foo()
17713 #pragma omp target teams in foo()
17715 #pragma omp distribute parallel for simd in foo()
17718 #pragma omp distribute parallel for simd in foo()
17722 #pragma omp target teams in foo()
17724 #pragma omp distribute simd in foo()
17727 #pragma omp distribute simd in foo()
17731 #pragma omp target teams in foo()
17733 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
17737 #pragma omp target teams in foo()
17739 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
17743 #pragma omp target teams in foo()
17745 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
17749 #pragma omp target teams in foo()
17751 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
17755 #pragma omp target teams in foo()
17757 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
17761 #pragma omp target teams in foo()
17763 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams' region}} in foo()
17766 #pragma omp target teams in foo()
17768 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
17772 #pragma omp target teams in foo()
17774 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
17778 #pragma omp target teams in foo()
17780 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
17784 #pragma omp target teams in foo()
17786 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
17792 #pragma omp target teams distribute // OK in foo()
17795 #pragma omp target teams distribute in foo()
17797 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
17801 #pragma omp target teams distribute in foo()
17803 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams dis… in foo()
17807 #pragma omp target teams distribute in foo()
17809 #pragma omp for // OK in foo()
17813 #pragma omp target teams distribute in foo()
17815 #pragma omp simd // OK in foo()
17819 #pragma omp target teams distribute in foo()
17821 #pragma omp for simd // OK in foo()
17825 #pragma omp target teams distribute in foo()
17827 #pragma omp parallel // OK in foo()
17831 #pragma omp target teams distribute in foo()
17833 #pragma omp sections // OK in foo()
17838 #pragma omp target teams distribute in foo()
17840 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
17845 #pragma omp target teams distribute in foo()
17847 #pragma omp single // OK in foo()
17852 #pragma omp target teams distribute in foo()
17854 #pragma omp master // OK in foo()
17859 #pragma omp target teams distribute in foo()
17861 #pragma omp critical // OK in foo()
17866 #pragma omp target teams distribute in foo()
17868 #pragma omp parallel // OK in foo()
17870 #pragma omp single in foo()
17876 #pragma omp target teams distribute in foo()
17878 #pragma omp parallel for // OK in foo()
17882 #pragma omp target teams distribute in foo()
17884 #pragma omp parallel for simd // OK in foo()
17888 #pragma omp target teams distribute in foo()
17890 #pragma omp parallel sections // OK in foo()
17895 #pragma omp target teams distribute in foo()
17897 #pragma omp task // OK in foo()
17902 #pragma omp target teams distribute in foo()
17904 #pragma omp taskyield // OK in foo()
17907 #pragma omp target teams distribute in foo()
17909 #pragma omp barrier // OK in foo()
17912 #pragma omp target teams distribute in foo()
17914 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribut… in foo()
17917 #pragma omp target teams distribute in foo()
17919 #pragma omp taskwait // OK in foo()
17922 #pragma omp target teams distribute in foo()
17924 #pragma omp flush // OK in foo()
17927 #pragma omp target teams distribute in foo()
17929 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
17932 #pragma omp target teams distribute in foo()
17934 #pragma omp atomic // OK in foo()
17937 #pragma omp target teams distribute in foo()
17939 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute' reg… in foo()
17942 #pragma omp target teams distribute in foo()
17944 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distr… in foo()
17947 #pragma omp target teams distribute in foo()
17949 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams di… in foo()
17953 #pragma omp target teams distribute in foo()
17955 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
17958 #pragma omp target teams distribute in foo()
17960 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
17963 #pragma omp target teams distribute in foo()
17965 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribu… in foo()
17968 #pragma omp target teams distribute in foo()
17970 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams di… in foo()
17973 #pragma omp target teams distribute in foo()
17975 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target team… in foo()
17979 #pragma omp target teams distribute in foo()
17981 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute… in foo()
17985 #pragma omp target teams distribute in foo()
17987 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
17991 #pragma omp target teams distribute in foo()
17993 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
17997 #pragma omp target teams distribute in foo()
17999 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
18003 #pragma omp target teams distribute in foo()
18005 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
18009 #pragma omp target teams distribute in foo()
18011 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribut… in foo()
18014 #pragma omp target teams distribute in foo()
18016 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
18020 #pragma omp target teams distribute in foo()
18022 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
18026 #pragma omp target teams distribute in foo()
18028 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
18032 #pragma omp target teams distribute in foo()
18034 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
18040 #pragma omp target teams distribute parallel for // OK in foo()
18043 #pragma omp target teams distribute parallel for in foo()
18045 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside… in foo()
18049 #pragma omp target teams distribute parallel for in foo()
18051 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams dis… in foo()
18055 #pragma omp target teams distribute parallel for in foo()
18057 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams distribute… in foo()
18061 #pragma omp target teams distribute parallel for in foo()
18063 #pragma omp simd // OK in foo()
18067 #pragma omp target teams distribute parallel for in foo()
18069 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams distr… in foo()
18073 #pragma omp target teams distribute parallel for in foo()
18075 #pragma omp parallel // OK in foo()
18079 #pragma omp target teams distribute parallel for in foo()
18081 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams distr… in foo()
18086 #pragma omp target teams distribute parallel for in foo()
18088 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a section… in foo()
18093 #pragma omp target teams distribute parallel for in foo()
18095 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams distrib… in foo()
18100 #pragma omp target teams distribute parallel for in foo()
18102 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams distrib… in foo()
18107 #pragma omp target teams distribute parallel for in foo()
18109 #pragma omp critical // OK in foo()
18114 #pragma omp target teams distribute parallel for in foo()
18116 #pragma omp parallel // OK in foo()
18118 #pragma omp single in foo()
18124 #pragma omp target teams distribute parallel for in foo()
18126 #pragma omp parallel for // OK in foo()
18130 #pragma omp target teams distribute parallel for in foo()
18132 #pragma omp parallel for simd // OK in foo()
18136 #pragma omp target teams distribute parallel for in foo()
18138 #pragma omp parallel sections // OK in foo()
18143 #pragma omp target teams distribute parallel for in foo()
18145 #pragma omp task // OK in foo()
18150 #pragma omp target teams distribute parallel for in foo()
18152 #pragma omp taskyield // OK in foo()
18155 #pragma omp target teams distribute parallel for in foo()
18157 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
18160 #pragma omp target teams distribute parallel for in foo()
18162 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribut… in foo()
18165 #pragma omp target teams distribute parallel for in foo()
18167 #pragma omp taskwait // OK in foo()
18170 #pragma omp target teams distribute parallel for in foo()
18172 #pragma omp flush // OK in foo()
18175 #pragma omp target teams distribute parallel for in foo()
18177 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distri… in foo()
18180 #pragma omp target teams distribute parallel for in foo()
18182 #pragma omp atomic // OK in foo()
18185 #pragma omp target teams distribute parallel for in foo()
18187 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute para… in foo()
18190 #pragma omp target teams distribute parallel for in foo()
18192 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distr… in foo()
18195 #pragma omp target teams distribute parallel for in foo()
18197 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams di… in foo()
18201 #pragma omp target teams distribute parallel for in foo()
18203 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target… in foo()
18206 #pragma omp target teams distribute parallel for in foo()
18208 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'targe… in foo()
18211 #pragma omp target teams distribute parallel for in foo()
18213 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribu… in foo()
18216 #pragma omp target teams distribute parallel for in foo()
18218 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams di… in foo()
18221 #pragma omp target teams distribute parallel for in foo()
18223 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target team… in foo()
18227 #pragma omp target teams distribute parallel for in foo()
18229 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute… in foo()
18233 #pragma omp target teams distribute parallel for in foo()
18235 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target tea… in foo()
18239 #pragma omp target teams distribute parallel for in foo()
18241 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'targe… in foo()
18245 #pragma omp target teams distribute parallel for in foo()
18247 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested … in foo()
18251 #pragma omp target teams distribute parallel for in foo()
18253 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested insid… in foo()
18257 #pragma omp target teams distribute parallel for in foo()
18259 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribut… in foo()
18262 #pragma omp target teams distribute parallel for in foo()
18264 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target team… in foo()
18268 #pragma omp target teams distribute parallel for in foo()
18270 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside… in foo()
18274 #pragma omp target teams distribute parallel for in foo()
18276 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested i… in foo()
18280 #pragma omp target teams distribute parallel for in foo()
18282 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target… in foo()
18288 #pragma omp target teams distribute parallel for simd // OK in foo()
18291 #pragma omp target teams distribute parallel for simd in foo()
18293 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
18297 #pragma omp target teams distribute parallel for simd in foo()
18299 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
18303 #pragma omp target teams distribute parallel for simd in foo()
18305 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18309 #pragma omp target teams distribute parallel for simd in foo()
18311 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
18315 #pragma omp target teams distribute parallel for simd in foo()
18317 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18321 #pragma omp target teams distribute parallel for simd in foo()
18323 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18327 #pragma omp target teams distribute parallel for simd in foo()
18329 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18334 #pragma omp target teams distribute parallel for simd in foo()
18336 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18341 #pragma omp target teams distribute parallel for simd in foo()
18343 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18348 #pragma omp target teams distribute parallel for simd in foo()
18350 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18355 #pragma omp target teams distribute parallel for simd in foo()
18357 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18362 #pragma omp target teams distribute parallel for simd in foo()
18364 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18366 #pragma omp single in foo()
18372 #pragma omp target teams distribute parallel for simd in foo()
18374 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
18378 #pragma omp target teams distribute parallel for simd in foo()
18380 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
18384 #pragma omp target teams distribute parallel for simd in foo()
18386 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
18391 #pragma omp target teams distribute parallel for simd in foo()
18393 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18398 #pragma omp target teams distribute parallel for simd in foo()
18400 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18403 #pragma omp target teams distribute parallel for simd in foo()
18405 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18408 #pragma omp target teams distribute parallel for simd in foo()
18410 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
18413 #pragma omp target teams distribute parallel for simd in foo()
18415 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18418 #pragma omp target teams distribute parallel for simd in foo()
18420 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18423 #pragma omp target teams distribute parallel for simd in foo()
18425 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18428 #pragma omp target teams distribute parallel for simd in foo()
18430 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18433 #pragma omp target teams distribute parallel for simd in foo()
18435 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18438 #pragma omp target teams distribute parallel for simd in foo()
18440 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
18443 #pragma omp target teams distribute parallel for simd in foo()
18445 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
18449 #pragma omp target teams distribute parallel for simd in foo()
18451 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
18454 #pragma omp target teams distribute parallel for simd in foo()
18456 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
18459 #pragma omp target teams distribute parallel for simd in foo()
18461 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18464 #pragma omp target teams distribute parallel for simd in foo()
18466 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
18469 #pragma omp target teams distribute parallel for simd in foo()
18471 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
18475 #pragma omp target teams distribute parallel for simd in foo()
18477 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
18481 #pragma omp target teams distribute parallel for simd in foo()
18483 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
18487 #pragma omp target teams distribute parallel for simd in foo()
18489 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
18493 #pragma omp target teams distribute parallel for simd in foo()
18495 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
18499 #pragma omp target teams distribute parallel for simd in foo()
18501 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
18505 #pragma omp target teams distribute parallel for simd in foo()
18507 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
18510 #pragma omp target teams distribute parallel for simd in foo()
18512 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
18516 #pragma omp target teams distribute parallel for simd in foo()
18518 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
18522 #pragma omp target teams distribute parallel for simd in foo()
18524 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
18528 #pragma omp target teams distribute parallel for simd in foo()
18530 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()
18536 #pragma omp target teams distribute simd // OK in foo()
18539 #pragma omp target teams distribute simd in foo()
18541 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested in… in foo()
18545 #pragma omp target teams distribute simd in foo()
18547 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region… in foo()
18551 #pragma omp target teams distribute simd in foo()
18553 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18557 #pragma omp target teams distribute simd in foo()
18559 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd claus… in foo()
18563 #pragma omp target teams distribute simd in foo()
18565 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18569 #pragma omp target teams distribute simd in foo()
18571 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18575 #pragma omp target teams distribute simd in foo()
18577 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18582 #pragma omp target teams distribute simd in foo()
18584 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18589 #pragma omp target teams distribute simd in foo()
18591 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18596 #pragma omp target teams distribute simd in foo()
18598 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18603 #pragma omp target teams distribute simd in foo()
18605 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18610 #pragma omp target teams distribute simd in foo()
18612 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18614 #pragma omp single in foo()
18620 #pragma omp target teams distribute simd in foo()
18622 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
18626 #pragma omp target teams distribute simd in foo()
18628 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
18632 #pragma omp target teams distribute simd in foo()
18634 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd… in foo()
18639 #pragma omp target teams distribute simd in foo()
18641 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18646 #pragma omp target teams distribute simd in foo()
18648 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18651 #pragma omp target teams distribute simd in foo()
18653 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18656 #pragma omp target teams distribute simd in foo()
18658 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-… in foo()
18661 #pragma omp target teams distribute simd in foo()
18663 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18666 #pragma omp target teams distribute simd in foo()
18668 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18671 #pragma omp target teams distribute simd in foo()
18673 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18676 #pragma omp target teams distribute simd in foo()
18678 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18681 #pragma omp target teams distribute simd in foo()
18683 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18686 #pragma omp target teams distribute simd in foo()
18688 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
18691 #pragma omp target teams distribute simd in foo()
18693 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
18697 #pragma omp target teams distribute simd in foo()
18699 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested in… in foo()
18702 #pragma omp target teams distribute simd in foo()
18704 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested i… in foo()
18707 #pragma omp target teams distribute simd in foo()
18709 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}} in foo()
18712 #pragma omp target teams distribute simd in foo()
18714 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a si… in foo()
18717 #pragma omp target teams distribute simd in foo()
18719 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd r… in foo()
18723 #pragma omp target teams distribute simd in foo()
18725 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd regio… in foo()
18729 #pragma omp target teams distribute simd in foo()
18731 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd … in foo()
18735 #pragma omp target teams distribute simd in foo()
18737 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a … in foo()
18741 #pragma omp target teams distribute simd in foo()
18743 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nes… in foo()
18747 #pragma omp target teams distribute simd in foo()
18749 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested i… in foo()
18753 #pragma omp target teams distribute simd in foo()
18755 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd regi… in foo()
18758 #pragma omp target teams distribute simd in foo()
18760 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside … in foo()
18764 #pragma omp target teams distribute simd in foo()
18766 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be n… in foo()
18770 #pragma omp target teams distribute simd in foo()
18772 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not… in foo()
18776 #pragma omp target teams distribute simd in foo()
18778 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested in… in foo()