foo(int * ptr)1 void foo(int *ptr) { 2 *ptr = 1; // expected-warning{{Dereference of null pointer (loaded from variable 'ptr')}} 3 } 4