1 // RUN: %libomptarget-compileoptxx-run-and-check-generic
6 #pragma omp declare target
9 constexpr static double pi
= 3.141592653589793116;
13 #pragma omp end declare target
15 #pragma omp declare target
16 constexpr static double anotherPi
= 3.14;
17 #pragma omp end declare target
21 #pragma omp target map(tofrom : a[:2])
27 // CHECK: pi = 3.141592653589793116
28 printf("pi = %.18f\n", a
[0]);
30 // CHECK: anotherPi = 3.14
31 printf("anotherPi = %.2f\n", a
[1]);