summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/clang-analyzer-core.NullDereference.cpp
blob: 6c9c5555325a42a113cd28d985aa7ce9973c37e7 (plain)
1
2
3
4
5
6
7
8
9
class C {
public:
  int x;
};

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