testcase for rdar://6551276 and llvm-gcc r63873

llvm-svn: 63874
This commit is contained in:
Chris Lattner 2009-02-05 18:15:17 +00:00
parent c6853c1531
commit a936b393e4
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
/* RUN: %llvmgcc -w -x objective-c -c %s -o /dev/null -pedantic-errors
rdar://6551276 */
void foo(const unsigned short *);
void bar() {
unsigned short *s[3];
int i;
@try { } @catch (id anException) { }
foo(2+s[i]);
}