1 // RUN: %clang_cc1 -verify -fopenmp -o - %s
5 int main(int argc, char **argv) {
7 #pragma omp teams default // expected-error {{expected '(' after 'default'}}
10 #pragma omp teams default ( // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}} expected-error {{expected ')'}} expected-note {{to match this '('}}
13 #pragma omp teams default () // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}}
16 #pragma omp teams default (none // expected-error {{expected ')'}} expected-note {{to match this '('}}
19 #pragma omp teams default (shared), default(shared) // expected-error {{directive '#pragma omp teams' cannot contain more than one 'default' clause}}
22 #pragma omp teams default (x) // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}}
26 #pragma omp teams default(none)
27 ++argc; // expected-error {{variable 'argc' must have explicitly specified data sharing attributes}}
30 #pragma omp teams default(none)
31 #pragma omp parallel default(shared)