blob: 461f92b51d2ca9f631138a6f9e77e2b997555382 [file] [log] [blame]
Chris Lattner23b48df2009-02-05 18:15:17 +00001/* RUN: %llvmgcc -w -x objective-c -c %s -o /dev/null -pedantic-errors
2 rdar://6551276 */
3
4void foo(const unsigned short *);
5void bar() {
6 unsigned short *s[3];
7 int i;
8 @try { } @catch (id anException) { }
9 foo(2+s[i]);
10}
11