xref: /llvm-project/offload/test/api/assert.c (revision 330d8983d25d08580fc1642fea48b2473f47a9da)
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 
main()7 int main() {
8   int i = 1;
9 #pragma omp target
10   assert(i > 0);
11 
12   // CHECK: PASS
13   printf("PASS\n");
14   return 0;
15 }
16