1 // 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
3 #include "Inputs/system-header-simulator-cxx.h"
9 void *operator new(size_t size) { return std::malloc(size); }
22 // CHECK: PreCall (operator new)
23 // CHECK-NEXT: PreCall (std::malloc)
24 // CHECK-NEXT: PostCall (std::malloc)
25 // CHECK-NEXT: PostCall (operator new)
26 // CHECK-NEXT: NewAllocator
27 // CHECK-NEXT: PreCall (S::S)
28 // CHECK-NEXT: PostCall (S::S)
29 // CHECK-NEXT: PreStmt<CXXNewExpr>
30 // CHECK-NEXT: PostStmt<CXXNewExpr>
31 // CHECK-NEXT: PreCall (foo)
32 // CHECK-NEXT: PostCall (foo)