10 lines · plain
1// RUN: %clang -fexceptions -S -emit-llvm %s -o /dev/null -pedantic-errors2 3void foo(const unsigned short *);4void bar(void) {5 unsigned short *s[3];6 int i;7 @try { } @catch (id anException) { }8 foo(2+s[i]);9}10 1// RUN: %clang -fexceptions -S -emit-llvm %s -o /dev/null -pedantic-errors2 3void foo(const unsigned short *);4void bar(void) {5 unsigned short *s[3];6 int i;7 @try { } @catch (id anException) { }8 foo(2+s[i]);9}10