2011-03-01 03:49:42 +08:00
|
|
|
// RUN: %clang_cc1 -analyze -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}}
|
|
|
|
}
|