mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 06:06:06 +00:00

- Add a new Kind of ProgramPoint: PostInitializer. - Still use GRStmtNodeBuilder. But special handling PostInitializer in GRStmtNodeBuilder::GenerateAutoTransition(). - Someday we should clean up the interface of GRStmtNodeBuilder. llvm-svn: 119335
15 lines
228 B
C++
15 lines
228 B
C++
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-store region -cfg-add-initializers -verify %s
|
|
|
|
class A {
|
|
int x;
|
|
public:
|
|
A();
|
|
};
|
|
|
|
A::A() : x(0) {
|
|
if (x != 0) {
|
|
int *p = 0;
|
|
*p = 0; // no-warning
|
|
}
|
|
}
|