#pragma omp target teams distribute simd private(ba)
for(intk=0;k<argc;++k)++k;
#pragma omp target teams distribute simd private(ca) // expected-error {{shared variable cannot be private}}
for(intk=0;k<argc;++k)++k;
#pragma omp target teams distribute simd private(da) // expected-error {{shared variable cannot be private}}
for(intk=0;k<argc;++k)++k;
#pragma omp target teams distribute simd private(S2::S2s) // expected-error {{shared variable cannot be private}}
for(intk=0;k<argc;++k)++k;
#pragma omp target teams distribute simd private(e, g) // expected-error {{calling a private constructor of class 'S4'}} expected-error {{calling a private constructor of class 'S5'}}
for(intk=0;k<argc;++k)++k;
#pragma omp target teams distribute simd private(h) // expected-error {{threadprivate or thread local variable cannot be private}}
for(intk=0;k<argc;++k)++k;
#pragma omp target teams distribute simd shared(i)
for(intk=0;k<argc;++k)++k;
#pragma omp target teams distribute simd firstprivate(i), private(i) // expected-error {{firstprivate variable cannot be private}} expected-note {{defined as firstprivate}}
for(intk=0;k<argc;++k)++k;
#pragma omp target teams distribute simd private(j)
for(intk=0;k<argc;++k)++k;
#pragma omp target teams distribute simd reduction(+:i)
for(intk=0;k<argc;++k)++k;
#pragma omp distribute private(i)
for(intk=0;k<10;++k){
#pragma omp target teams distribute simd private(i)
for(intx=0;x<10;++x)foo();
}
#pragma omp target teams distribute simd firstprivate(i)
for(intk=0;k<10;++k){
}
#pragma omp target teams distribute simd private(j) map(j) // expected-error {{private variable cannot be in a map clause in '#pragma omp target teams distribute simd' directive}} expected-note {{defined as private}}