1*f4a2713aSLionel Sambuc// RUN: %clang -fexceptions -S -emit-llvm %s -o /dev/null -pedantic-errors 2*f4a2713aSLionel Sambuc// rdar://6551276 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambucvoid foo(const unsigned short *); 5*f4a2713aSLionel Sambucvoid bar() { 6*f4a2713aSLionel Sambuc unsigned short *s[3]; 7*f4a2713aSLionel Sambuc int i; 8*f4a2713aSLionel Sambuc @try { } @catch (id anException) { } 9*f4a2713aSLionel Sambuc foo(2+s[i]); 10*f4a2713aSLionel Sambuc} 11