1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s
7 #pragma omp barrier untied // expected-error {{unexpected OpenMP clause 'untied' in directive '#pragma omp barrier'}}
8 #pragma omp barrier unknown // expected-warning {{extra tokens at the end of '#pragma omp barrier' are ignored}}
10 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}
15 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}
20 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}
27 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}
45 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}
50 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}
58 int main(int argc, char **argv) {
61 #pragma omp barrier untied // expected-error {{unexpected OpenMP clause 'untied' in directive '#pragma omp barrier'}}
62 #pragma omp barrier unknown // expected-warning {{extra tokens at the end of '#pragma omp barrier' are ignored}}
64 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}
69 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}
74 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}
81 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}
99 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}
104 #pragma omp barrier // expected-error {{'#pragma omp barrier' cannot be an immediate substatement}}