1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 -o - %s
5 int main(int argc, char **argv) {
6 #pragma omp target parallel default // expected-error {{expected '(' after 'default'}}
8 #pragma omp target parallel default ( // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}} expected-error {{expected ')'}} expected-note {{to match this '('}}
10 #pragma omp target parallel default () // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}}
12 #pragma omp target parallel default (none // expected-error {{expected ')'}} expected-note {{to match this '('}}
14 #pragma omp target parallel default (shared), default(shared) // expected-error {{directive '#pragma omp target parallel' cannot contain more than one 'default' clause}}
16 #pragma omp target parallel default (x) // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}}
19 #pragma omp target parallel default(none)
20 ++argc; // expected-error {{variable 'argc' must have explicitly specified data sharing attributes}}
22 #pragma omp target parallel default(none)
24 #pragma omp target parallel default(shared)