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) {
9 #pragma omp begin declare variant match(device={kind(gpu)})
10 int also_after(void) {
13 int also_before(void) {
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) {
30 return also_after() + also_before();
31 } // expected-error {{expected '#pragma omp end declare variant'}}