1 // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -ferror-limit 100 -o - %s 2 3 void foo(); 4 5 int main(int argc, char **argv) { 6 #pragma omp parallel default // expected-error {{expected '(' after 'default'}} 7 #pragma omp parallel default ( // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}} expected-error {{expected ')'}} expected-note {{to match this '('}} 8 #pragma omp parallel default () // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}} 9 #pragma omp parallel default (none // expected-error {{expected ')'}} expected-note {{to match this '('}} 10 #pragma omp parallel default (shared), default(shared) // expected-error {{directive '#pragma omp parallel' cannot contain more than one 'default' clause}} 11 #pragma omp parallel default (x) // expected-error {{expected 'none' or 'shared' in OpenMP clause 'default'}} 12 foo(); 13 14 return 0; 15 } 16