xref: /llvm-project/offload/test/offloading/lone_target_exit_data.c (revision 330d8983d25d08580fc1642fea48b2473f47a9da)
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 
main()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