diff options
author | Hans Wennborg <hans@hanshq.net> | 2016-08-11 21:50:18 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2016-08-11 21:50:18 +0000 |
commit | 2019f5e1c28038dd355b823008a09096055afb38 (patch) | |
tree | 52e1512eb139784452c89cb33c410aa549479ba6 | |
parent | 85cd828f87c0800e698b8d62334b2e1270375307 (diff) | |
download | compiler-rt-2019f5e1c28038dd355b823008a09096055afb38.tar.gz |
Remove test/asan/TestCases/Darwin/dead-strip.c
The test is gated on OS version, but actually depends on what SDK
is used, see PR28743. Deleting to unblock 3.9.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_39@278427 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/asan/TestCases/Darwin/dead-strip.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/asan/TestCases/Darwin/dead-strip.c b/test/asan/TestCases/Darwin/dead-strip.c deleted file mode 100644 index 212dedd46..000000000 --- a/test/asan/TestCases/Darwin/dead-strip.c +++ /dev/null @@ -1,22 +0,0 @@ -// Test that AddressSanitizer does not re-animate dead globals when dead -// stripping is turned on. -// -// This test verifies that an out-of-bounds access on a global variable is -// detected after dead stripping has been performed. This proves that the -// runtime is able to register globals in the __DATA,__asan_globals section. - -// REQUIRES: osx-ld64-live_support -// RUN: %clang_asan -mllvm -asan-globals-live-support -Xlinker -dead_strip -o %t %s -// RUN: llvm-nm -format=posix %t | FileCheck --check-prefix NM-CHECK %s -// RUN: not %run %t 2>&1 | FileCheck --check-prefix ASAN-CHECK %s - -int alive[1] = {}; -int dead[1] = {}; -// NM-CHECK: {{^_alive }} -// NM-CHECK-NOT: {{^_dead }} - -int main(int argc, char *argv[]) { - alive[argc] = 0; - // ASAN-CHECK: {{0x.* is located 0 bytes to the right of global variable}} - return 0; -} |