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