1 // RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=45 -ferror-limit 100 %s -Wuninitialized
3 // RUN: %clang_cc1 -verify -fopenmp-simd -fopenmp-version=45 -ferror-limit 100 %s -Wuninitialized
7 #pragma omp taskwait allocate(argc) // expected-error {{unexpected OpenMP clause 'allocate' in directive '#pragma omp taskwait'}}
8 #pragma omp taskwait depend(in:argc) // expected-error {{unexpected OpenMP clause 'depend' in directive '#pragma omp taskwait'}}
10 #pragma omp taskwait untied // expected-error {{unexpected OpenMP clause 'untied' in directive '#pragma omp taskwait'}}
11 #pragma omp taskwait unknown // expected-warning {{extra tokens at the end of '#pragma omp taskwait' are ignored}}
13 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}
18 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}
23 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}
30 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}
33 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}
48 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}
61 int main(int argc
, char **argv
) {
64 #pragma omp taskwait untied // expected-error {{unexpected OpenMP clause 'untied' in directive '#pragma omp taskwait'}}
65 #pragma omp taskwait unknown // expected-warning {{extra tokens at the end of '#pragma omp taskwait' are ignored}}
67 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}
72 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}
77 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}
84 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}
87 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}
102 #pragma omp taskwait // expected-error {{'#pragma omp taskwait' cannot be an immediate substatement}}