Bump version to 19.1.0-rc3
[llvm-project.git] / offload / test / offloading / dynamic_module.c
blob00ae8100db7e4270d7c30c844e727c1e1cc0e8ef
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 // REQUIRES: gpu
8 #ifdef SHARED
9 void foo() {}
10 #else
11 #include <stdio.h>
12 int main() {
13 #pragma omp target
15 // CHECK: DONE.
16 printf("%s\n", "DONE.");
17 return 0;
19 #endif