blob: 1f696ac7c2d007da619e9f92db390e7733cf40b8 [file] [log] [blame]
Eric Christophera1032cc2011-08-20 00:49:25 +00001// RUN: %clang -fexceptions -S -emit-llvm %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}