| 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 | |
| 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 |
