Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
cd480ad90ff4c144084805761d2dfa52ee9e1c92
/
.
/
test
/
Analysis
/
PR7218.c
blob: 635e56f053ec7fd98ae4c8b4dff89907023eb5c9 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-store region -verify %s
char
PR7218
(
char
a
)
{
char
buf
[
2
];
buf
[
0
]
=
a
;
return
buf
[
1
];
// expected-warning {{Undefined or garbage value returned to caller}}
}