| // RUN: %clang_analyze_cc1 -analyzer-checker=debug.AnalysisOrder -analyzer-config c++-allocator-inlining=false,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" |
| void *operator new(size_t size) { return std::malloc(size); } |
| // CHECK-NEXT: PostCall (S::S) |
| // CHECK-NEXT: PreStmt<CXXNewExpr> |
| // CHECK-NEXT: PostStmt<CXXNewExpr> |
| // CHECK-NEXT: PreCall (foo) |
| // CHECK-NEXT: PostCall (foo) |
| // CHECK-NEXT: PreCall (std::malloc) |
| // CHECK-NEXT: PostCall (std::malloc) |