1 // RUN: %libomptarget-compile-generic -DSHARED -fPIC -shared -o %t.so && %clang %flags %s -o %t -ldl && %libomptarget-run-generic %t.so 2>&1 | %fcheck-generic
8 printf("%s\n", "DONE.");
14 int main(int argc
, char **argv
) {
15 void *Handle
= dlopen(argv
[1], RTLD_NOW
);
19 printf("dlopen() failed: %s\n", dlerror());
22 Foo
= (int (*)(void))dlsym(Handle
, "foo");
24 printf("dlsym() failed: %s\n", dlerror());
28 // CHECK-NOT: {{abort|fault}}