1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s -Wuninitialized
3 // RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s -Wuninitialized
7 #pragma omp taskyield allocate(argc) // expected-error {{unexpected OpenMP clause 'allocate' in directive '#pragma omp taskyield'}}
9 #pragma omp taskyield untied // expected-error {{unexpected OpenMP clause 'untied' in directive '#pragma omp taskyield'}}
10 #pragma omp taskyield unknown // expected-warning {{extra tokens at the end of '#pragma omp taskyield' are ignored}}
12 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
17 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
22 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
29 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
32 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
40 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
47 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
52 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
58 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
63 int main(int argc
, char **argv
) {
66 #pragma omp taskyield untied // expected-error {{unexpected OpenMP clause 'untied' in directive '#pragma omp taskyield'}}
67 #pragma omp taskyield unknown // expected-warning {{extra tokens at the end of '#pragma omp taskyield' are ignored}}
69 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
74 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
79 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
86 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
89 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
97 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
100 #pragma omp taskyield
104 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
106 #pragma omp taskyield
109 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}
111 #pragma omp taskyield
115 #pragma omp taskyield // expected-error {{'#pragma omp taskyield' cannot be an immediate substatement}}