aboutsummaryrefslogtreecommitdiff
path: root/offload/test/env/omp_target_debug.c
blob: d63e71388fdfcf6c8c76292ceceb6cf2caafb0da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// clang-format off
// RUN: %libomptarget-compile-generic && env LIBOMPTARGET_DEBUG=1 %libomptarget-run-generic 2>&1 | %fcheck-generic -allow-empty -check-prefix=DEBUG
// RUN: %libomptarget-compile-generic && env LIBOMPTARGET_DEBUG=0 %libomptarget-run-generic 2>&1 | %fcheck-generic -allow-empty -check-prefix=NDEBUG
// REQUIRES: libomptarget-debug
// XFAIL: intelgpu
// clang-format on

int main(void) {
#pragma omp target
  {}
  return 0;
}

// DEBUG: omptarget
// NDEBUG-NOT: omptarget
// NDEBUG-NOT: Target