summaryrefslogtreecommitdiff
path: root/openmp/libomptarget/test/api/assert.c
blob: b1288777888ec6e991135527a55a46d11aade7f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %libomptarget-compile-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;
}