outofbound.c revision d73902121a93c3135cf53e2d724361cec1037d7e
1// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -verify %s 2// XFAIL: * 3 4char f1() { 5 char* s = "abcd"; 6 char c = s[4]; // no-warning 7 return s[5] + c; // expected-warning{{Load or store into an out-of-bound memory position.}} 8} 9