1 // RUN: %clang_cc1 -analyze -analyzer-checker=debug.AnalysisOrder -analyzer-config debug.AnalysisOrder:Bind=true -analyzer-config debug.AnalysisOrder:RegionChanges=true %s 2>&1 | FileCheck %s
10 void testTemporaries() {
11 // This triggers RegionChanges once for zero-initialization of the structure.
15 void seeIfCheckBindWorks() {
16 // This should trigger checkBind. The rest of the code shouldn't.
17 // This also triggers checkRegionChanges after that.
18 // Note that this function is analyzed first, so the messages would be on top.
22 // seeIfCheckBindWorks():
24 // CHECK-NEXT: RegionChanges
27 // CHECK-NEXT: RegionChanges
29 // Make sure there's no further output.
31 // CHECK-NOT: RegionChanges