Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / OpenMP / openmp_common.c
blobb639fb3c04ec4c25bb23bb5126c9c7108e600131
1 // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 -o - %s
3 // RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 -o - %s
4 // SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
6 #pragma omp // expected-error {{expected an OpenMP directive}}
7 #pragma omp unknown_directive // expected-error {{expected an OpenMP directive}}
9 void foo(void) {
10 #pragma omp // expected-error {{expected an OpenMP directive}}
11 #pragma omp unknown_directive // expected-error {{expected an OpenMP directive}}
14 typedef struct S {
15 #pragma omp parallel for private(j) schedule(static) if (tree1->totleaf > 1024) // expected-error {{unexpected OpenMP directive '#pragma omp parallel for'}}
16 } St;