Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / OpenMP / begin_declare_variant_elided_range_withouth_end.c
blobd58dd000a50398d44bbc0df46ae104a858a29670
1 // RUN: %clang_cc1 -triple=x86_64-pc-win32 -verify -fopenmp -x c -std=c99 -fms-extensions -Wno-pragma-pack %s
2 // RUN: %clang_cc1 -triple=x86_64-pc-win32 -verify -fopenmp-simd -x c -std=c99 -fms-extensions -Wno-pragma-pack %s
4 #pragma omp begin declare variant match(device={kind(gpu)}) // expected-note {{to match this '#pragma omp begin declare variant'}}
5 int also_before(void) {
6 return 0;
9 #pragma omp begin declare variant match(device={kind(gpu)})
10 int also_after(void) {
11 return 2;
13 int also_before(void) {
14 return 2;
16 #pragma omp end declare variant
19 #pragma omp begin declare variant match(device={kind(fpga)})
21 This text is never parsed!
23 #pragma omp end declare variant
25 int also_after(void) {
26 return 0;
29 int test() {
30 return also_after() + also_before();
31 } // expected-error {{expected '#pragma omp end declare variant'}}