1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 -o - %s -Wuninitialized 2 3 // RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 -o - %s -Wuninitialized 4 5 void foo(); 6 main(int argc,char ** argv)7int main(int argc, char **argv) { 8 int i; 9 #pragma omp parallel for proc_bind // expected-error {{expected '(' after 'proc_bind'}} 10 for (i = 0; i < argc; ++i) 11 foo(); 12 #pragma omp parallel for proc_bind( // expected-error {{expected 'master', 'close' or 'spread' in OpenMP clause 'proc_bind'}} expected-error {{expected ')'}} expected-note {{to match this '('}} 13 for (i = 0; i < argc; ++i) 14 foo(); 15 #pragma omp parallel for proc_bind() // expected-error {{expected 'master', 'close' or 'spread' in OpenMP clause 'proc_bind'}} 16 for (i = 0; i < argc; ++i) 17 foo(); 18 #pragma omp parallel for proc_bind(master // expected-error {{expected ')'}} expected-note {{to match this '('}} 19 for (i = 0; i < argc; ++i) 20 foo(); 21 #pragma omp parallel for proc_bind(close), proc_bind(spread) // expected-error {{directive '#pragma omp parallel for' cannot contain more than one 'proc_bind' clause}} 22 for (i = 0; i < argc; ++i) 23 foo(); 24 #pragma omp parallel for proc_bind(x) // expected-error {{expected 'master', 'close' or 'spread' in OpenMP clause 'proc_bind'}} 25 for (i = 0; i < argc; ++i) 26 foo(); 27 28 #pragma omp parallel for proc_bind(master) 29 for (i = 0; i < argc; ++i) 30 foo(); 31 32 #pragma omp parallel proc_bind(close) 33 #pragma omp parallel for proc_bind(spread) 34 for (i = 0; i < argc; ++i) 35 foo(); 36 return 0; 37 } 38