Changeset View
Changeset View
Standalone View
Standalone View
compiler-rt/trunk/test/asan/TestCases/small_memcpy_test.cc
// Test that small memcpy works correctly. | // Test that small memcpy works correctly. | ||||
// RUN: %clangxx_asan %s -o %t | // RUN: %clangxx_asan %s -o %t | ||||
// RUN: not %run %t 8 24 2>&1 | FileCheck %s --check-prefix=CHECK | // RUN: not %run %t 8 24 2>&1 | FileCheck %s --check-prefix=CHECK | ||||
// RUN: not %run %t 16 32 2>&1 | FileCheck %s --check-prefix=CHECK | // RUN: not %run %t 16 32 2>&1 | FileCheck %s --check-prefix=CHECK | ||||
// RUN: not %run %t 24 40 2>&1 | FileCheck %s --check-prefix=CHECK | // RUN: not %run %t 24 40 2>&1 | FileCheck %s --check-prefix=CHECK | ||||
// RUN: not %run %t 32 48 2>&1 | FileCheck %s --check-prefix=CHECK | // RUN: not %run %t 32 48 2>&1 | FileCheck %s --check-prefix=CHECK | ||||
// RUN: not %run %t 40 56 2>&1 | FileCheck %s --check-prefix=CHECK | // RUN: not %run %t 40 56 2>&1 | FileCheck %s --check-prefix=CHECK | ||||
// RUN: not %run %t 48 64 2>&1 | FileCheck %s --check-prefix=CHECK | // RUN: not %run %t 48 64 2>&1 | FileCheck %s --check-prefix=CHECK | ||||
// REQUIRES: shadow-scale-3 | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <sanitizer/asan_interface.h> | #include <sanitizer/asan_interface.h> | ||||
int main(int argc, char **argv) { | int main(int argc, char **argv) { | ||||
Show All 11 Lines |