While we investigate the issue, we disable the test on host-offloading so the buildbots are back to more useful state. Issue is tracked: https://github.com/llvm/llvm-project/issues/93173
20 lines
543 B
C
20 lines
543 B
C
// RUN: %libomptarget-compile-generic -DSHARED -fPIC -shared -o %t.so && \
|
|
// RUN: %libomptarget-compile-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic
|
|
// RUN: %libomptarget-compileopt-generic -DSHARED -fPIC -shared -o %t.so && \
|
|
// RUN: %libomptarget-compileopt-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic
|
|
//
|
|
// UNSUPPORTED: x86_64-pc-linux-gnu
|
|
|
|
#ifdef SHARED
|
|
void foo() {}
|
|
#else
|
|
#include <stdio.h>
|
|
int main() {
|
|
#pragma omp target
|
|
;
|
|
// CHECK: DONE.
|
|
printf("%s\n", "DONE.");
|
|
return 0;
|
|
}
|
|
#endif
|