blob: eace4f873bc295cb811b4f3bfa243b7171f7d808 [file] [log] [blame]
// RUN: clang -cc1 -analyze -warn-sizeof-pointer -verify %s
struct s {
};
int f(struct s *p) {
return sizeof(p); // expected-warning{{The code calls sizeof() on a pointer type. This can produce an unexpected result.}}
}