1// RUN: %libomptarget-compile-generic && %libomptarget-run-fail-generic 2>&1 | \
2// RUN: %fcheck-generic --check-prefix=CHECK
3
4// REQUIRES: libc
5// REQUIRES: gpu
6
7#include <assert.h>
8
9int main() {
10 // CHECK: Assertion failed: '0 && "Trivial failure"' in function: 'int main()'
11 // CHECK-NOT: Assertion failed:
12#pragma omp target
13#pragma omp parallel
14 { assert(0 && "Trivial failure"); }
15}
16

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

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