Files
llvm-project/offload/test/api/assert.c
fineg74 2890f9883c [OFFLOAD] Improve handling of synchronization errors in L0 plugin and reenable tests (#186927)
This change improves handling of errors during synchronization in Level
Zero plugin by ensuring cleanup of queues and events in case of an
synchronization error. As a result multiple tests stopped hanging.

---------

Co-authored-by: Duran, Alex <alejandro.duran@intel.com>
2026-03-18 05:50:06 +01:00

16 lines
262 B
C

// RUN: %libomptarget-compile-run-and-check-generic
// RUN: %libomptarget-compileopt-run-and-check-generic
#include <assert.h>
#include <stdio.h>
int main() {
int i = 1;
#pragma omp target
assert(i > 0);
// CHECK: PASS
printf("PASS\n");
return 0;
}