1 // RUN: %clang_cc1 -verify -fopenmp -ast-print %s | FileCheck %s 2 // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s 3 // RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s 4 // expected-no-diagnostics 5 6 #ifndef HEADER 7 #define HEADER 8 9 void foo() {} 10 11 int main (int argc, char **argv) { 12 int b = argc, c, d, e, f, g; 13 static int a; 14 // CHECK: static int a; 15 16 #pragma omp target data 17 // CHECK: #pragma omp target data 18 a=2; 19 // CHECK-NEXT: a = 2; 20 #pragma omp target data if (target data: b) 21 // CHECK: #pragma omp target data if(target data: b) 22 foo(); 23 // CHECK-NEXT: foo(); 24 25 #pragma omp target data if (b > g) 26 // CHECK: #pragma omp target data if(b > g) 27 foo(); 28 // CHECK-NEXT: foo(); 29 30 return (0); 31 } 32 33 #endif 34