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