#pragma omp teams distribute dist_schedule // expected-error {{expected '(' after 'dist_schedule'}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule ( // expected-error {{expected 'static' in OpenMP clause 'dist_schedule'}} expected-error {{expected ')'}} expected-note {{to match this '('}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule () // expected-error {{expected 'static' in OpenMP clause 'dist_schedule'}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule (static // expected-error {{expected ')'}} expected-note {{to match this '('}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule (static, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule (argc)) // expected-error {{expected 'static' in OpenMP clause 'dist_schedule'}} expected-warning {{extra tokens at the end of '#pragma omp teams distribute' are ignored}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule (static, argc > 0 ? argv[1] : argv[2]) // expected-error2 {{expression must have integral or unscoped enumeration type, not 'char *'}}
#pragma omp teams distribute dist_schedule (static), dist_schedule (static, 1<<z) // expected-error {{directive '#pragma omp teams distribute' cannot contain more than one 'dist_schedule' clause}}
#pragma omp teams distribute dist_schedule (static, S1) // expected-error {{'S1' does not refer to a value}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule (static, argv[1]=2) // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error3 {{expression must have integral or unscoped enumeration type, not 'char *'}}
#pragma omp teams distribute dist_schedule // expected-error {{expected '(' after 'dist_schedule'}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule ( // expected-error {{expected 'static' in OpenMP clause 'dist_schedule'}} expected-error {{expected ')'}} expected-note {{to match this '('}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule () // expected-error {{expected 'static' in OpenMP clause 'dist_schedule'}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule (static // expected-error {{expected ')'}} expected-note {{to match this '('}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule (static, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule (argc)) // expected-error {{expected 'static' in OpenMP clause 'dist_schedule'}} expected-warning {{extra tokens at the end of '#pragma omp teams distribute' are ignored}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule (static, argc > 0 ? argv[1] : argv[2]) // expected-error {{expression must have integral or unscoped enumeration type, not 'char *'}}
#pragma omp teams distribute dist_schedule (static), dist_schedule (static, z+1) // expected-error {{directive '#pragma omp teams distribute' cannot contain more than one 'dist_schedule' clause}}
#pragma omp teams distribute dist_schedule (static, S1) // expected-error {{'S1' does not refer to a value}}
for(inti=0;i<10;++i)foo();
#pragma omp target
#pragma omp teams distribute dist_schedule (static, argv[1]=2) // expected-error {{expression must have integral or unscoped enumeration type, not 'char *'}} expected-error {{expected ')'}} expected-note {{to match this '('}}
for(inti=0;i<10;++i)foo();
return(tmain<int,5>(argc)+tmain<char,1>(argv[0][0]));// expected-note {{in instantiation of function template specialization 'tmain<int, 5>' requested here}} expected-note {{in instantiation of function template specialization 'tmain<char, 1>' requested here}}