1 // RUN: %clang_cc1 -analyze -analyzer-checker=core -verify %s
2 
3 #include "test-include-cpp.h"
4 
test1(int * p)5 int TestIncludeClass::test1(int *p) {
6   p = 0;
7   return *p; // expected-warning{{Dereference of null pointer}}
8 }
9 
test2(int * p)10 int TestIncludeClass::test2(int *p) {
11   p = 0;
12   return *p; // expected-warning{{Dereference of null pointer}}
13 }
14