1// RUN: %libomptarget-compile-generic -DSHARED -fPIC -shared -o %t.so && \
2// RUN: %libomptarget-compile-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic
3// RUN: %libomptarget-compileopt-generic -DSHARED -fPIC -shared -o %t.so && \
4// RUN: %libomptarget-compileopt-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic
5
6#ifdef SHARED
7void foo() {}
8#else
9#include <stdio.h>
10int main() {
11#pragma omp target
12 ;
13 // CHECK: DONE.
14 printf(format: "%s\n", "DONE.");
15 return 0;
16}
17#endif
18

source code of offload/test/offloading/dynamic_module.c