Revert "Reland - [Offload] Introduce offload-tblgen and initial new API implementatio...
[llvm-project.git] / offload / test / env / omp_target_debug.c
blobec81873a091f507d0925fd17a0d1e603bdbd504e
1 // RUN: %libomptarget-compile-generic && env LIBOMPTARGET_DEBUG=1 %libomptarget-run-generic 2>&1 | %fcheck-generic -allow-empty -check-prefix=DEBUG
2 // RUN: %libomptarget-compile-generic && env LIBOMPTARGET_DEBUG=0 %libomptarget-run-generic 2>&1 | %fcheck-generic -allow-empty -check-prefix=NDEBUG
3 // REQUIRES: libomptarget-debug
5 int main(void) {
6 #pragma omp target
7 {}
8 return 0;
11 // DEBUG: omptarget
12 // NDEBUG-NOT: omptarget
13 // NDEBUG-NOT: Target