The test run fine on my AMD GPU machine, we should verify them on others too and put them into our regular testing. Not testing O1/2/3 is really bad and not testing all architecturs is similarly problematic. Differential Revision: https://reviews.llvm.org/D148576
10 lines
245 B
C++
10 lines
245 B
C++
// RUN: %libomptarget-compilexx-generic && %libomptarget-run-fail-generic
|
|
// RUN: %libomptarget-compileoptxx-generic && %libomptarget-run-fail-generic
|
|
|
|
int main(int argc, char *argv[]) {
|
|
#pragma omp target
|
|
{ __builtin_trap(); }
|
|
|
|
return 0;
|
|
}
|