summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-02-14 14:06:10 +0000
committerAlexey Samsonov <samsonov@google.com>2014-02-14 14:06:10 +0000
commit9f20d6703479a952465f7db0c2fbd70904c030c2 (patch)
tree165b5b998b1e69a1186b403115919f3b9f3fc1fa /compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc
parent8434e60f7e2d8e5da48d94f612cf980a5d63bcec (diff)
downloadbcm5719-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/memcmp_test.cc')
-rw-r--r--compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc b/compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc
deleted file mode 100644
index 758311ddc47..00000000000
--- a/compiler-rt/lib/asan/lit_tests/TestCases/memcmp_test.cc
+++ /dev/null
@@ -1,17 +0,0 @@
-// RUN: %clangxx_asan -O0 %s -o %t && not %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O2 %s -o %t && not %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O3 %s -o %t && not %t 2>&1 | FileCheck %s
-
-// REQUIRES: compiler-rt-optimized
-
-#include <string.h>
-int main(int argc, char **argv) {
- char a1[] = {argc, 2, 3, 4};
- char a2[] = {1, 2*argc, 3, 4};
- int res = memcmp(a1, a2, 4 + argc); // BOOM
- // CHECK: AddressSanitizer: stack-buffer-overflow
- // CHECK: {{#0.*memcmp}}
- // CHECK: {{#1.*main}}
- return res;
-}
OpenPOWER on IntegriCloud