xref: /llvm-project/offload/test/env/omp_target_debug.c (revision 330d8983d25d08580fc1642fea48b2473f47a9da)
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
4 
main(void)5 int main(void) {
6 #pragma omp target
7   {}
8   return 0;
9 }
10 
11 // DEBUG: omptarget
12 // NDEBUG-NOT: omptarget
13 // NDEBUG-NOT: Target
14