diff --git a/llvm/test/FrontendObjC/2009-02-05-VolatileProp.m b/llvm/test/FrontendObjC/2009-02-05-VolatileProp.m new file mode 100644 index 000000000000..461f92b51d2c --- /dev/null +++ b/llvm/test/FrontendObjC/2009-02-05-VolatileProp.m @@ -0,0 +1,11 @@ +/* RUN: %llvmgcc -w -x objective-c -c %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]); +} +