diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 17:59:23 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 17:59:23 +0000 |
commit | 9a83721404652cea39e9f02ae3e3b5c964602a5c (patch) | |
tree | 23e9541ce27049a103f6ed046be61592123e02c9 /test/Analysis/cxxnewexpr-callback-inline.cpp | |
parent | 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 (diff) |
Notes
Diffstat (limited to 'test/Analysis/cxxnewexpr-callback-inline.cpp')
-rw-r--r-- | test/Analysis/cxxnewexpr-callback-inline.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/test/Analysis/cxxnewexpr-callback-inline.cpp b/test/Analysis/cxxnewexpr-callback-inline.cpp deleted file mode 100644 index c823de85821d3..0000000000000 --- a/test/Analysis/cxxnewexpr-callback-inline.cpp +++ /dev/null @@ -1,32 +0,0 @@ -// RUN: %clang_analyze_cc1 -analyzer-checker=debug.AnalysisOrder -analyzer-config c++-allocator-inlining=true,debug.AnalysisOrder:PreStmtCXXNewExpr=true,debug.AnalysisOrder:PostStmtCXXNewExpr=true,debug.AnalysisOrder:PreCall=true,debug.AnalysisOrder:PostCall=true,debug.AnalysisOrder:NewAllocator=true %s 2>&1 | FileCheck %s - -#include "Inputs/system-header-simulator-cxx.h" - -namespace std { - void *malloc(size_t); -} - -void *operator new(size_t size) { return std::malloc(size); } - -struct S { - S() {} -}; - -void foo(); - -void test() { - S *s = new S(); - foo(); -} - -// CHECK: PreCall (operator new) -// CHECK-NEXT: PreCall (std::malloc) -// CHECK-NEXT: PostCall (std::malloc) -// CHECK-NEXT: PostCall (operator new) -// CHECK-NEXT: NewAllocator -// CHECK-NEXT: PreCall (S::S) -// CHECK-NEXT: PostCall (S::S) -// CHECK-NEXT: PreStmt<CXXNewExpr> -// CHECK-NEXT: PostStmt<CXXNewExpr> -// CHECK-NEXT: PreCall (foo) -// CHECK-NEXT: PostCall (foo) |