aboutsummaryrefslogtreecommitdiff
path: root/offload/test/offloading/lone_target_exit_data.c
blob: 73a5ffa2a1c2b13c70bb385c778d3b0293b86c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Check that a target exit data directive behaves correctly when the runtime
// has not yet been initialized.

// RUN: %libomptarget-compile-run-and-check-generic

#include <stdio.h>

int main() {
  // CHECK: x = 98
  int x = 98;
#pragma omp target exit data map(from : x)
  printf("x = %d\n", x);
  return 0;
}