1 //RUN: %clang_analyze_cc1 -analyzer-checker=debug.AnalysisOrder -analyzer-config debug.AnalysisOrder:EndFunction=true %s 2>&1 | FileCheck %s
3 // At the end of a function, we can only obtain a ReturnStmt if the last
4 // CFGElement in the CFGBlock is either a CFGStmt or a CFGAutomaticObjDtor.
13 int dtorAfterReturnStmt() {
18 S
endsWithReturnStmt() {
22 // endsWithReturnStmt()
24 // CHECK-NEXT: ReturnStmt: yes
25 // CHECK-NEXT: CFGElement: CFGStmt
27 // dtorAfterReturnStmt()
29 // CHECK-NEXT: ReturnStmt: yes
30 // CHECK-NEXT: CFGElement: CFGAutomaticObjDtor
34 // CHECK-NEXT: ReturnStmt: no