summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/uninit-const.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2018-01-24 21:24:10 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2018-01-24 21:24:10 +0000
commitd3c54313abe723c834462e9ed8f738fc0b7ca542 (patch)
tree6e8bdae5933d649b474e57396d584a6f0193410c /clang/test/Analysis/uninit-const.cpp
parent7f20eacf779c11921f0406706fe6125b94097b57 (diff)
downloadbcm5719-llvm-d3c54313abe723c834462e9ed8f738fc0b7ca542.tar.gz
bcm5719-llvm-d3c54313abe723c834462e9ed8f738fc0b7ca542.zip
[analyzer] NFC: Run many existing C++ tests with a custom operator new().
In order to provide more test coverage for inlined operator new(), add more run-lines to existing test cases, which would trigger our fake header to provide a body for operator new(). Most of the code should still behave reasonably. When behavior intentionally changes, #ifs are provided. Differential Revision: https://reviews.llvm.org/D42221 llvm-svn: 323376
Diffstat (limited to 'clang/test/Analysis/uninit-const.cpp')
-rw-r--r--clang/test/Analysis/uninit-const.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Analysis/uninit-const.cpp b/clang/test/Analysis/uninit-const.cpp
index 2ffc71bcbd6..f5166e6b27b 100644
--- a/clang/test/Analysis/uninit-const.cpp
+++ b/clang/test/Analysis/uninit-const.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_analyze_cc1 -analyzer-checker=cplusplus.NewDelete,core,alpha.core.CallAndMessageUnInitRefArg -analyzer-output=text -verify %s
+// RUN: %clang_analyze_cc1 -analyzer-checker=cplusplus.NewDelete,core,alpha.core.CallAndMessageUnInitRefArg -analyzer-output=text -DTEST_INLINABLE_ALLOCATORS -verify %s
// Passing uninitialized const data to unknown function
#include "Inputs/system-header-simulator-cxx.h"
OpenPOWER on IntegriCloud