Changeset View
Changeset View
Standalone View
Standalone View
compiler-rt/trunk/test/asan/TestCases/strtoll_strict.c
Show All 17 Lines | |||||
// RUN: %run %t test6 2>&1 | // RUN: %run %t test6 2>&1 | ||||
// RUN: %env_asan_opts=strict_string_checks=false %run %t test6 2>&1 | // RUN: %env_asan_opts=strict_string_checks=false %run %t test6 2>&1 | ||||
// RUN: %env_asan_opts=strict_string_checks=true not %run %t test6 2>&1 | FileCheck %s --check-prefix=CHECK6 | // RUN: %env_asan_opts=strict_string_checks=true not %run %t test6 2>&1 | FileCheck %s --check-prefix=CHECK6 | ||||
// RUN: %run %t test7 2>&1 | // RUN: %run %t test7 2>&1 | ||||
// RUN: %env_asan_opts=strict_string_checks=false %run %t test7 2>&1 | // RUN: %env_asan_opts=strict_string_checks=false %run %t test7 2>&1 | ||||
// RUN: %env_asan_opts=strict_string_checks=true not %run %t test7 2>&1 | FileCheck %s --check-prefix=CHECK7 | // RUN: %env_asan_opts=strict_string_checks=true not %run %t test7 2>&1 | FileCheck %s --check-prefix=CHECK7 | ||||
// FIXME: Enable strtoll interceptor. | // FIXME: Enable strtoll interceptor. | ||||
// REQUIRES: shadow-scale-3 | |||||
// XFAIL: win32 | // XFAIL: win32 | ||||
#include <assert.h> | #include <assert.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <sanitizer/asan_interface.h> | #include <sanitizer/asan_interface.h> | ||||
void test1(char *array, char *endptr) { | void test1(char *array, char *endptr) { | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |