mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 16:30:53 -05:00
8 lines
224 B
C
8 lines
224 B
C
// 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.}}
|
|
}
|