diff options
| author | Alexey Samsonov <samsonov@google.com> | 2014-02-14 14:06:10 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2014-02-14 14:06:10 +0000 |
| commit | 9f20d6703479a952465f7db0c2fbd70904c030c2 (patch) | |
| tree | 165b5b998b1e69a1186b403115919f3b9f3fc1fa /compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc | |
| parent | 8434e60f7e2d8e5da48d94f612cf980a5d63bcec (diff) | |
| download | bcm5719-llvm-9f20d6703479a952465f7db0c2fbd70904c030c2.tar.gz bcm5719-llvm-9f20d6703479a952465f7db0c2fbd70904c030c2.zip | |
Move ASan lit-tests under test/asan
llvm-svn: 201413
Diffstat (limited to 'compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc')
| -rw-r--r-- | compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc b/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc deleted file mode 100644 index 73e00507358..00000000000 --- a/compiler-rt/lib/asan/lit_tests/TestCases/SharedLibs/dlclose-test-so.cc +++ /dev/null @@ -1,33 +0,0 @@ -//===----------- dlclose-test-so.cc -----------------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file is a part of AddressSanitizer, an address sanity checker. -// -// Regression test for -// http://code.google.com/p/address-sanitizer/issues/detail?id=19 -//===----------------------------------------------------------------------===// -#include <stdio.h> - -static int pad1; -static int static_var; -static int pad2; - -extern "C" -int *get_address_of_static_var() { - return &static_var; -} - -__attribute__((constructor)) -void at_dlopen() { - printf("%s: I am being dlopened\n", __FILE__); -} -__attribute__((destructor)) -void at_dlclose() { - printf("%s: I am being dlclosed\n", __FILE__); -} |

