2017-03-04 02:02:02 +08:00
|
|
|
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-store region -verify %s
|
2010-05-29 14:23:24 +08:00
|
|
|
char PR7218(char a) {
|
|
|
|
char buf[2];
|
|
|
|
buf[0] = a;
|
|
|
|
return buf[1]; // expected-warning {{Undefined or garbage value returned to caller}}
|
|
|
|
}
|