1// RUN: %libomptarget-compile-run-and-check-generic
2// RUN: %libomptarget-compileopt-run-and-check-generic
3
4#include <assert.h>
5#include <stdio.h>
6
7int main() {
8 int i = 1;
9#pragma omp target
10 assert(i > 0);
11
12 // CHECK: PASS
13 printf(format: "PASS\n");
14 return 0;
15}
16

source code of offload/test/api/assert.c