2011-05-02 19:39:53 +00:00
|
|
|
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store region -verify %s
|
2010-07-13 17:21:42 +00:00
|
|
|
char PR7218(char a) {
|
|
|
|
char buf[2];
|
|
|
|
buf[0] = a;
|
|
|
|
return buf[1]; // expected-warning {{Undefined or garbage value returned to caller}}
|
|
|
|
}
|