llvm-project/clang/test/Analysis/pointer-escape-on-conservat...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
328 B
C
Raw Normal View History

// 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