2015-05-20 12:24:19 +08:00
|
|
|
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 -o - %s
|
2013-03-22 14:34:35 +08:00
|
|
|
|
2017-12-30 02:07:07 +08:00
|
|
|
// RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 -o - %s
|
|
|
|
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
|
|
|
|
|
2013-03-22 14:34:35 +08:00
|
|
|
#pragma omp // expected-error {{expected an OpenMP directive}}
|
|
|
|
#pragma omp unknown_directive // expected-error {{expected an OpenMP directive}}
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
#pragma omp // expected-error {{expected an OpenMP directive}}
|
|
|
|
#pragma omp unknown_directive // expected-error {{expected an OpenMP directive}}
|
|
|
|
}
|
2015-08-12 15:10:54 +08:00
|
|
|
|
|
|
|
typedef struct S {
|
|
|
|
#pragma omp parallel for private(j) schedule(static) if (tree1->totleaf > 1024) // expected-error {{unexpected OpenMP directive '#pragma omp parallel for'}}
|
|
|
|
} St;
|
|
|
|
|