#pragma omp teams distribute simd firstprivate(ba)
for(i=0;i<argc;++i)foo();
#pragma omp target
#pragma omp teams distribute simd firstprivate(ca) // expected-error {{no matching constructor for initialization of 'S3'}}
for(i=0;i<argc;++i)foo();
#pragma omp target
#pragma omp teams distribute simd firstprivate(da)
for(i=0;i<argc;++i)foo();
#pragma omp target
#pragma omp teams distribute simd firstprivate(S2::S2s)
for(i=0;i<argc;++i)foo();
#pragma omp target
#pragma omp teams distribute simd firstprivate(S2::S2sc)
for(i=0;i<argc;++i)foo();
#pragma omp target
#pragma omp teams distribute simd firstprivate(h) // expected-error {{threadprivate or thread local variable cannot be firstprivate}}
for(i=0;i<argc;++i)foo();
#pragma omp target
#pragma omp teams distribute simd private(i), firstprivate(i) // expected-error {{private variable cannot be firstprivate}} expected-note 2 {{defined as private}}
for(i=0;i<argc;++i)foo();// expected-error {{loop iteration variable in the associated loop of 'omp teams distribute simd' directive may not be private, predetermined as linear}}
#pragma omp target
#pragma omp teams distribute simd firstprivate(i)
for(j=0;j<argc;++j)foo();
#pragma omp target
#pragma omp teams distribute simd firstprivate(i) // expected-note {{defined as firstprivate}}
for(i=0;i<argc;++i)foo();// expected-error {{loop iteration variable in the associated loop of 'omp teams distribute simd' directive may not be firstprivate, predetermined as linear}}