forked from OSchip/llvm-project
[asan] one more attempt to enable lsan by default (PR19521)
llvm-svn: 208545
This commit is contained in:
parent
070fd1c42a
commit
118d469660
|
@ -236,7 +236,7 @@ static void ParseFlagsFromString(Flags *f, const char *str) {
|
|||
void InitializeFlags(Flags *f, const char *env) {
|
||||
CommonFlags *cf = common_flags();
|
||||
SetCommonFlagsDefaults(cf);
|
||||
cf->detect_leaks = false; // CAN_SANITIZE_LEAKS;
|
||||
cf->detect_leaks = CAN_SANITIZE_LEAKS;
|
||||
cf->external_symbolizer_path = GetEnv("ASAN_SYMBOLIZER_PATH");
|
||||
cf->malloc_context_size = kDefaultMallocContextSize;
|
||||
cf->intercept_tls_get_addr = true;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
//
|
||||
// RUN: %clangxx_asan %s -o %t
|
||||
// RUN: ASAN_OPTIONS=detect_leaks=1 not %run %t 2>&1 | FileCheck %s
|
||||
// RUN: ASAN_OPTIONS="" %run %t
|
||||
// RUN: ASAN_OPTIONS="" not %run %t 2>&1 | FileCheck %s
|
||||
// RUN: ASAN_OPTIONS=detect_leaks=0 %run %t
|
||||
#include <stdio.h>
|
||||
int *t;
|
||||
|
|
Loading…
Reference in New Issue