1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
3 // rdar://problem/64202361
22 return *x
; // expected-warning{{Dereference of null pointer (loaded from variable 'x')}}
27 int testIndirectCrash() {
32 return *x
; // expected-warning{{Dereference of null pointer (loaded from variable 'x')}}
38 // This case shall not crash with an assertion failure about void* dereferening.
44 operator c() { return d
? &b::d
: 0; }
57 i
->g(); // expected-warning{{Called C++ object pointer is uninitialized}}