summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/invalid-pointer-pairs-subtract-success.cc
diff options
context:
space:
mode:
authorAlex Shlyapnikov <alekseys@google.com>2018-02-01 19:52:56 +0000
committerAlex Shlyapnikov <alekseys@google.com>2018-02-01 19:52:56 +0000
commita42aefa8281b6658539bb2e8132550598d0567ce (patch)
treecc064bc847fa8913789ec80d39e12691df82576c /test/asan/TestCases/invalid-pointer-pairs-subtract-success.cc
parent0f69c8b59e94467b3c9c0a38bfb84edc55c1076b (diff)
Make detect_invalid_pointer_pairs option to be tristate.
Summary: With the change, one can choose not to report comparison (or subtraction) of a pointer with nullptr pointer. Reviewers: kcc, jakubjelinek, alekseyshl Reviewed By: alekseyshl Subscribers: kubamracek Differential Revision: https://reviews.llvm.org/D41479 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@323995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/invalid-pointer-pairs-subtract-success.cc')
-rw-r--r--test/asan/TestCases/invalid-pointer-pairs-subtract-success.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/asan/TestCases/invalid-pointer-pairs-subtract-success.cc b/test/asan/TestCases/invalid-pointer-pairs-subtract-success.cc
index de175a778..7ea120ed5 100644
--- a/test/asan/TestCases/invalid-pointer-pairs-subtract-success.cc
+++ b/test/asan/TestCases/invalid-pointer-pairs-subtract-success.cc
@@ -1,6 +1,6 @@
// RUN: %clangxx_asan -O0 %s -o %t -mllvm -asan-detect-invalid-pointer-pair
-// RUN: %env_asan_opts=detect_invalid_pointer_pairs=1 %run %t
+// RUN: %env_asan_opts=detect_invalid_pointer_pairs=2 %run %t
#include <assert.h>
#include <stdlib.h>