summaryrefslogtreecommitdiff
path: root/test/FrontendObjC/2009-02-05-VolatileProp.m
blob: 1deef739bee2a53125cdb1d9f8ddbc830f73cb5a (plain)
1
2
3
4
5
6
7
8
9
10
11
/* RUN: %llvmgcc -w -x objective-c -S %s -o /dev/null -pedantic-errors
   rdar://6551276 */

void foo(const unsigned short *);
void bar() {
  unsigned short *s[3];
  int i;
  @try { } @catch (id anException) { }
  foo(2+s[i]);
}