1 // RUN: %clangxx_asan -xc++ -shared -fPIC -o %t.so - < %s
2 // RUN: %clang_asan %s -o %t.out -ldl
4 // RUN: { env ASAN_OPTIONS=verbosity=1 %t.out %t.so || : ; } 2>&1 | FileCheck %s
6 // CHECK: AddressSanitizer: failed to intercept '__cxa_throw'
8 // This tests assumes static linking of the asan runtime.
9 // UNSUPPORTED: asan-dynamic-runtime
13 static void foo(void) {
35 int main(int argc
, char **argv
) {
37 void *handle
= dlopen(argv
[1], RTLD_LAZY
);
39 bar
= dlsym(handle
, "bar");