blob: 1deef739bee2a53125cdb1d9f8ddbc830f73cb5a [file] [log] [blame]
Duncan Sands8182ac62010-11-25 21:46:07 +00001/* RUN: %llvmgcc -w -x objective-c -S %s -o /dev/null -pedantic-errors
Chris Lattnera936b392009-02-05 18:15:17 +00002 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