1330d8983SJohannes Doerfert // RUN: %libomptarget-compile-generic -DSHARED -fPIC -shared -o %t.so && \ 2330d8983SJohannes Doerfert // RUN: %libomptarget-compile-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic 3330d8983SJohannes Doerfert // RUN: %libomptarget-compileopt-generic -DSHARED -fPIC -shared -o %t.so && \ 4330d8983SJohannes Doerfert // RUN: %libomptarget-compileopt-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic 527f53b26SJan Patrick Lehr // 6*88234488SEthan Luis McDonough // REQUIRES: gpu 7330d8983SJohannes Doerfert 8330d8983SJohannes Doerfert #ifdef SHARED foo()9330d8983SJohannes Doerfertvoid foo() {} 10330d8983SJohannes Doerfert #else 11330d8983SJohannes Doerfert #include <stdio.h> main()12330d8983SJohannes Doerfertint main() { 13330d8983SJohannes Doerfert #pragma omp target 14330d8983SJohannes Doerfert ; 15330d8983SJohannes Doerfert // CHECK: DONE. 16330d8983SJohannes Doerfert printf("%s\n", "DONE."); 17330d8983SJohannes Doerfert return 0; 18330d8983SJohannes Doerfert } 19330d8983SJohannes Doerfert #endif 20