diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-04-04 12:24:46 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-04-04 12:24:46 +0000 |
commit | 2bf9a677a4294c6309ad56fdf647efb518839590 (patch) | |
tree | 66c633ca7bdaf96aa99ec053be73365439fa1dbc /test/asan/TestCases/start-deactivated.cc | |
parent | 1910f4e4d988102efad551c157ace78174f73af0 (diff) |
[ASan] Explicitly specify -ldl/-lpthread in RUN-lines where needed
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/start-deactivated.cc')
-rw-r--r-- | test/asan/TestCases/start-deactivated.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/asan/TestCases/start-deactivated.cc b/test/asan/TestCases/start-deactivated.cc index a06976649..7e703d67e 100644 --- a/test/asan/TestCases/start-deactivated.cc +++ b/test/asan/TestCases/start-deactivated.cc @@ -2,10 +2,9 @@ // Main executable is uninstrumented, but linked to ASan runtime. The shared // library is instrumented. Memory errors before dlopen are not detected. -// RUN: %clangxx_asan -O0 %p/SharedLibs/start-deactivated-so.cc \ -// RUN: -fPIC -shared -o %t-so.so +// RUN: %clangxx_asan -O0 %p/SharedLibs/start-deactivated-so.cc -fPIC -shared -o %t-so.so // RUN: %clangxx -O0 %s -c -o %t.o -// RUN: %clangxx_asan -O0 %t.o -o %t +// RUN: %clangxx_asan -O0 %t.o -ldl -o %t // RUN: ASAN_OPTIONS=start_deactivated=1 not %t 2>&1 | FileCheck %s #include <dlfcn.h> |