diff options
Diffstat (limited to 'lib/asan/lit_tests/memcmp_strict_test.cc')
-rw-r--r-- | lib/asan/lit_tests/memcmp_strict_test.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/asan/lit_tests/memcmp_strict_test.cc b/lib/asan/lit_tests/memcmp_strict_test.cc deleted file mode 100644 index 00bf921c744a7..0000000000000 --- a/lib/asan/lit_tests/memcmp_strict_test.cc +++ /dev/null @@ -1,16 +0,0 @@ -// RUN: %clangxx_asan -m64 -O0 %s -o %t && ASAN_OPTIONS=strict_memcmp=0 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-nonstrict -// RUN: %clangxx_asan -m64 -O0 %s -o %t && ASAN_OPTIONS=strict_memcmp=1 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-strict -// Default to strict_memcmp=1. -// RUN: %clangxx_asan -m64 -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-strict - -#include <stdio.h> -#include <string.h> -int main() { - char kFoo[] = "foo"; - char kFubar[] = "fubar"; - int res = memcmp(kFoo, kFubar, strlen(kFubar)); - printf("res: %d\n", res); - // CHECK-nonstrict: {{res: -1}} - // CHECK-strict: AddressSanitizer: stack-buffer-overflow - return 0; -} |