Sign in
cobalt
/
cobalt
/
07081467c3d00b04a6a1162e0566a5a8b9cfe2d5
/
.
/
third_party
/
llvm-project
/
clang
/
test
/
Analysis
/
PR7218.c
blob: 10a75c98e515629bcb68c2213454f8e821634241 [
file
] [
log
] [
blame
]
// RUN: %clang_analyze_cc1 -analyzer-checker=core -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}}
}