1 // Check that a target exit data directive behaves correctly when the runtime
2 // has not yet been initialized.
3 
4 // RUN: %libomptarget-compile-run-and-check-generic
5 
6 #include <stdio.h>
7 
8 int main() {
9   // CHECK: x = 98
10   int x = 98;
11   #pragma omp target exit data map(from:x)
12   printf("x = %d\n", x);
13   return 0;
14 }
15