fune/tools/clang-tidy/test/clang-analyzer-core.NullDereference.cpp

9 lines
77 B
C++

class C {
public:
int x;
};
void test() {
C *pc = 0;
int k = pc->x;
}