1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 -o - %s 2 3 #pragma omp // expected-error {{expected an OpenMP directive}} 4 #pragma omp unknown_directive // expected-error {{expected an OpenMP directive}} 5 6 void foo() { 7 #pragma omp // expected-error {{expected an OpenMP directive}} 8 #pragma omp unknown_directive // expected-error {{expected an OpenMP directive}} 9 } 10 11 typedef struct S { 12 #pragma omp parallel for private(j) schedule(static) if (tree1->totleaf > 1024) // expected-error {{unexpected OpenMP directive '#pragma omp parallel for'}} 13 } St; 14 15