Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / openmp / libomptarget / test / offloading / dynamic_module.c
blobf1e9862002a18657d7e584e93351d76237f5c4e4
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
6 #ifdef SHARED
7 void foo() {}
8 #else
9 #include <stdio.h>
10 int main() {
11 #pragma omp target
13 // CHECK: DONE.
14 printf("%s\n", "DONE.");
15 return 0;
17 #endif