1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
20 return *x
; // expected-warning{{Dereference of null pointer (loaded from variable 'x')}}
25 int testIndirectCrash() {
30 return *x
; // expected-warning{{Dereference of null pointer (loaded from variable 'x')}}
36 // This case shall not crash with an assertion failure about void* dereferening.
42 operator c() { return d
? &b::d
: 0; }
55 i
->g(); // expected-warning{{Called C++ object pointer is uninitialized}}