Files
llvm/offload/test/libc/assert.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
394 B
C
Raw Normal View History

// RUN: %libomptarget-compile-generic && %libomptarget-run-fail-generic 2>&1 | \
// RUN: %fcheck-generic --check-prefix=CHECK
// REQUIRES: libc
// REQUIRES: gpu
#include <assert.h>
int main() {
// CHECK: Assertion failed: '0 && "Trivial failure"' in function: 'int main()'
// CHECK-NOT: Assertion failed:
#pragma omp target
#pragma omp parallel
{ assert(0 && "Trivial failure"); }
}