xref: /aosp_15_r20/external/clang/test/CodeGenObjC/2009-02-05-VolatileProp.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: %clang -fexceptions -S -emit-llvm %s -o /dev/null -pedantic-errors
2*67e74705SXin Li// rdar://6551276
3*67e74705SXin Li
4*67e74705SXin Livoid foo(const unsigned short *);
5*67e74705SXin Livoid bar() {
6*67e74705SXin Li  unsigned short *s[3];
7*67e74705SXin Li  int i;
8*67e74705SXin Li  @try { } @catch (id anException) { }
9*67e74705SXin Li  foo(2+s[i]);
10*67e74705SXin Li}
11