Chandler Carruth 1af88f12a3 Enhance the array bounds checking to work for several other constructs,
especially C++ code, and generally expand the test coverage.

Logic adapted from a patch by Kaelyn Uhrain <rikka@google.com> and
another Googler.

llvm-svn: 125775
2011-02-17 21:10:52 +00:00

9 lines
150 B
Objective-C

// RUN: %clang_cc1 -fsyntax-only -verify %s
int main(void) {
const char ch = @encode(char *)[0];
char c = @encode(char *)[0] + 4;
return c;
}