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