fune/tools/clang-tidy/test/clang-analyzer-core.NullDereference.cpp
2018-11-30 06:36:07 -05:00

9 lines
No EOL
76 B
C++

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