diff options
| author | Artem Dergachev <artem.dergachev@gmail.com> | 2018-01-24 21:24:10 +0000 |
|---|---|---|
| committer | Artem Dergachev <artem.dergachev@gmail.com> | 2018-01-24 21:24:10 +0000 |
| commit | d3c54313abe723c834462e9ed8f738fc0b7ca542 (patch) | |
| tree | 6e8bdae5933d649b474e57396d584a6f0193410c /clang/test/Analysis/NewDelete-intersections.mm | |
| parent | 7f20eacf779c11921f0406706fe6125b94097b57 (diff) | |
| download | bcm5719-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/NewDelete-intersections.mm')
| -rw-r--r-- | clang/test/Analysis/NewDelete-intersections.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Analysis/NewDelete-intersections.mm b/clang/test/Analysis/NewDelete-intersections.mm index aa52c790288..b3707858f00 100644 --- a/clang/test/Analysis/NewDelete-intersections.mm +++ b/clang/test/Analysis/NewDelete-intersections.mm @@ -1,5 +1,7 @@ // RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete -std=c++11 -fblocks -verify %s // RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete,cplusplus.NewDeleteLeaks -std=c++11 -DLEAKS -fblocks -verify %s +// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete -std=c++11 -fblocks -DTEST_INLINABLE_ALLOCATORS -verify %s +// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete,cplusplus.NewDeleteLeaks -std=c++11 -DLEAKS -fblocks -DTEST_INLINABLE_ALLOCATORS -verify %s #include "Inputs/system-header-simulator-cxx.h" #include "Inputs/system-header-simulator-objc.h" |

