You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
328 B

// RUN: %clang_cc1 -analyze -analyzer-checker=debug.AnalysisOrder -analyzer-config debug.AnalysisOrder:PointerEscape=true -analyzer-config debug.AnalysisOrder:PostCall=true %s 2>&1 | FileCheck %s
void f(int *);
int *getMem();
int main() {
f(getMem());
return 0;
}
// CHECK: PostCall (f)
// CHECK-NEXT: PointerEscape