#pragma omp ordered threads threads // expected-error {{directive '#pragma omp ordered' cannot contain more than one 'threads' clause}}
{
foo();
}
}
#pragma omp for ordered(1) // expected-note {{'ordered' clause with specified parameter}}
for(inti=0;i<10;++i){
#pragma omp ordered // expected-error {{'ordered' directive without any clauses cannot be closely nested inside ordered region with specified parameter}}
{
foo();
}
}
#pragma omp for ordered(1) // expected-note {{'ordered' clause with specified parameter}}
for(inti=0;i<10;++i){
#pragma omp ordered threads // expected-error {{'ordered' directive with 'threads' clause cannot be closely nested inside ordered region with specified parameter}}
#pragma omp ordered threads threads // expected-error {{directive '#pragma omp ordered' cannot contain more than one 'threads' clause}}
{
foo();
}
}
#pragma omp for ordered(1) // expected-note {{'ordered' clause with specified parameter}}
for(inti=0;i<10;++i){
#pragma omp ordered // expected-error {{'ordered' directive without any clauses cannot be closely nested inside ordered region with specified parameter}}
{
foo();
}
}
#pragma omp for ordered(1) // expected-note {{'ordered' clause with specified parameter}}
for(inti=0;i<10;++i){
#pragma omp ordered threads // expected-error {{'ordered' directive with 'threads' clause cannot be closely nested inside ordered region with specified parameter}}