1 // RUN: %libomptarget-compile-generic -DA -c -o %t-a.o
2 // RUN: %libomptarget-compile-generic -DB -c -o %t-b.o
3 // RUN: %libomptarget-compile-generic %t-a.o %t-b.o && \
4 // RUN: %libomptarget-run-generic | %fcheck-generic
7 __attribute__((weak
)) int x
= 999;
8 #pragma omp declare target to(x)
11 #pragma omp declare target to(x)
12 __attribute__((weak
)) int y
= 42;
13 #pragma omp declare target to(y)
19 #pragma omp declare target to(x)
21 #pragma omp declare target to(y)
26 #pragma omp target update from(x)
27 #pragma omp target update from(y)
30 if (x
== 42 && y
== 42)