1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 -o - %s
5 int main(int argc, char **argv) {
6 #pragma omp parallel sections proc_bind // expected-error {{expected '(' after 'proc_bind'}}
8 #pragma omp parallel sections proc_bind( // expected-error {{expected 'master', 'close' or 'spread' in OpenMP clause 'proc_bind'}} expected-error {{expected ')'}} expected-note {{to match this '('}}
10 #pragma omp parallel sections proc_bind() // expected-error {{expected 'master', 'close' or 'spread' in OpenMP clause 'proc_bind'}}
12 #pragma omp parallel sections proc_bind(master // expected-error {{expected ')'}} expected-note {{to match this '('}}
14 #pragma omp parallel sections proc_bind(close), proc_bind(spread) // expected-error {{directive '#pragma omp parallel sections' cannot contain more than one 'proc_bind' clause}}
16 #pragma omp parallel sections proc_bind(x) // expected-error {{expected 'master', 'close' or 'spread' in OpenMP clause 'proc_bind'}}
19 #pragma omp parallel sections proc_bind(master)
22 #pragma omp parallel sections proc_bind(close)
24 #pragma omp parallel sections proc_bind(spread)