1*67e74705SXin Li // RUN: %clang_cc1 -analyze -analyzer-checker=alpha.core.SizeofPtr -verify %s 2*67e74705SXin Li 3*67e74705SXin Li struct s { 4*67e74705SXin Li }; 5*67e74705SXin Li f(struct s * p)6*67e74705SXin Liint f(struct s *p) { 7*67e74705SXin Li return sizeof(p); // expected-warning{{The code calls sizeof() on a pointer type. This can produce an unexpected result}} 8*67e74705SXin Li } 9