xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/2009-02-05-VolatileProp.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
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