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 // TODO: Issue an eror message as the end is missing
5 // expected-no-diagnostics
6 #pragma omp begin declare variant match(device={kind(cpu)})
7 int also_before(void) {
11 #pragma omp begin declare variant match(device={kind(gpu)})
12 int also_after(void) {
15 int also_before(void) {
18 #pragma omp end declare variant
21 #pragma omp begin declare variant match(device={kind(fpga)})
23 This text is never parsed
!
25 #pragma omp end declare variant
27 int also_after(void) {
32 return also_after() + also_before();