Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
ef74f4c6dcd59b3af1de9d8f613c1caf3e6cb63d
/
.
/
test
/
Analysis
/
sizeofpointer.c
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.}}
}